In this recipe, we will learn to change the value for the color of a light many times to animate the rendered colors of the scene. We will create a loop that runs three statements three times.
We have to be working on a project with some instances added to the virtual world. Therefore, we will use an existing project that has a stormy sky and a sun light.
MyPurplePlanetproject saved in the Working with templates to create a new planet recipe.