Skip main navigation

New offer! Get 30% off one whole year of Unlimited learning. Subscribe for just £249.99 £174.99. New subscribers only. T&Cs apply

Find out more

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