Turtle, Patch

scale-color color variable limit1 limit2

Parameters:
color Number Color
variable Number Variable color
limit1 Number Lower limit
limit2 Number Upper limit

Description:
Turtles set their color to a shade of color based on their value of variable. limit1 and limit2 determine the amount of gradation. If a patch calls this, all turtles on that patch scale their color.

Examples:
scale-color blue energy 0 20 Turtles turn one of twenty shades of blue. Turtles with lower energy turn darker blue.

scale-color blue energy 20 0
Turtles turn one of twenty shades of blue. Turtles with lower energy turn lighter blue.

Notes:
If the turtle exceeds the limits, it turns black on the dark end of the specturm and turns white on the bright end of the spectrum.

Related Commands:
scale-pc