Skip main navigation

Colouring exercise

Practice exercise to evaluate understanding of concept of colour and their use in AFrame.

Exercise

For this exercise, we want you to demonstrate your understanding of colour and its use in a VR example.

Use the baseline source code (see the “See Also” section at the bottom of the page). To work on the exercise, copy the file contents to Glitch or CodePen as per your preference.

Your task is to re-write the getColour function, which specifies the colours of the cube grid, such that it produces a distinctly different view.

This article is from the free online

Construct a Virtual Reality Experience

Created by
FutureLearn - Learning For Life

Reach your personal and professional goals

Unlock access to hundreds of expert online courses and degrees from top universities and educators to gain accredited qualifications and professional CV-building certificates.

Join over 18 million learners to launch, switch or build upon your career, all at your own pace, across a wide range of topic areas.

Start Learning now