Table of Contents | |||
Numbers and Commands from: http://en.flossmanuals.net/TurtleArt/NumbersandCommands The numbers commands allows you to perform math in your commands.
This is similar to the example for the repeat, but in this case we are changing the color each time it repeats. We take the current value of color (which is 0 the first time through) and add 2 to it, giving us 2 for the color on the second loop, 4 for the third and so on. One note on the color: If I increase the color value by 5 each time then when it gets to 99 it starts over again at 0. |