Colors (For a Printable Version Click Here) StarLogo has 14 "major" colors, with many shades of each. Different shades are associated with different numbers. For example, the shades of red are associated with the numbers between 10 and 20 (not including 20). Number 10 is a very "dark" red (close to black), number 15 is the "purest" red, and number 19 is a "light" red (close to white). Similarly, number 20 is a dark orange, number 25 is the purest orange, and number 29 is a light orange. (Note: Fractional numbers can also represent different shades, if your computer supports enough colors.) These numbers are used as inputs to the
commands setc (which sets the color of turtles)
and setpc (which sets the color of patches). So
the command The organization of colors by shades is very useful for achieving smooth shading effects using the commands scale-color and scale-pc. There are commands (e.g., black, red, green) that report color values. These commands report the number for the "purest" shade of the color. For example, red reports 15 and orange reports 25. Color names report numbers in the color listing:
|