Reports a shade of color proportional to number.
If range1 is less than range2, then the larger the number, the lighter the shade of color. But if range2 is less than range1, the color scaling is inverted.
If number is less than range1, then the darkest shade of color is chosen.
If number is greater than range2, then the lightest shade of color is chosen.
Note: for color shade is irrelevant, e.g. green and green + 2 are equivalent, and the same spectrum of colors will be used.
ask turtles [ set color scale-color red age 0 50 ] ;; colors each turtle a shade of red proportional ;; to its value for the age variable
Take me to the full NetLogo Dictionary