Colors

You can change the colors of both the turtle's pen and the background using the COLOR and BACKGROUND commands respectively. Each command takes an integer indicating a color. The current version of SeaTurtle supports just 14 colors. If there is demand in the future, we will expand the supported colors. Here is an example of changing the pen's color to blue and the background color to green:

COLOR 1
BACKGROUND 6

The following table lists all of the available colors in SeaTurtle as well as constant names you can use in-place of the integer:

Color Integer Constant
Black 0 BLACK
Blue 1 BLUE
Brown 2 BROWN
Cyan 3 CYAN
Dark Gray 4 DARKGRAY
Gray 5 GRAY
Green 6 GREEN
Light Gray 7 LIGHTGRAY
Magenta 8 MAGENTA
Orange 9 ORANGE
Purple 10 PURPLE
Red 11 RED
White 12 WHITE
Yellow 13 YELLOW

If a color constant is used in code, its integer equivalent will be substituted. For instance, the above program can be rewritten as:

COLOR BLUE
BACKGROUND GREEN