O'Reilly logo

Alice 3 Cookbook by Vanesa S. Olsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Animating light's properties

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.

Getting ready

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.

  1. Open an existing project based on one of the six predefined Alice templates. You can open the MyPurplePlanet project saved in the Working with templates to create a new planet recipe.
  2. Now, click on Edit Code, at the lower-right corner of the big scene preview. Alice will show a smaller preview of the scene and will display the Code Editor on a panel located ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required