Values

Values

Computing involves taking inputs and using them to produce outputs. Turtle Art uses numerical values in two forms, a number (integer) block and a reporter block. Reporter blocks report a value (i.e. the current xcor (x-coordinate value) of the turtle) or the current color or shade value).

TIP: Changing Values

  • Double the value to make it larger

  • Halve the value to make it smaller

Use this iteratively (again and again) until you achieve the value you desire.

Pink blocks are value blocks, click and type to change values

WARNING:

Using extremely large values can "crash" or "freeze" the Turtle Art application.

Variables

Variables make Turtle Art designs really interesting. You can use the Store in Box command blocks to set and change a variable or you can use one of the reporter blocks (i.e. - color, xcor, ycor, heading, etc.) to change the turtle's behavior again and again.

Variables work best when they are within a looping behavior (see next section below).


Variables are values that can change throughout a program.