Step 6. Change some code

Reminder

You can maximise the video to see the code more clearly.

Now the big one: Editing the code. You can change code, press "Save" and then "Run" the new code. Nothing bad can happen. You cannot damage your machine or our server.

Change the following:

  1. Change the background color. Here is a list of color names.

  2. Change the object size.

Every time you make a change, press Save, and Run again to see what happens.


Make more changes:

  1. Change the object color.

  2. Change how much the rotation angle changes each step. Changing this can make a dramatic difference.

  3. You can change the box to not be a cube by giving it numbers for all 3 dimensions:
     box ( width, height, depth ); 
    For example:
     box ( 200, 50, 1000 ); 
    
Every time you make a change, press Save, and Run again.
Tweet this step: