Karel also has the ability to paint corners in its world with the following colors:
BLANK
, which removes any color on the squareBLACK
BLUE
CYAN
DARK_GRAY
GRAY
GREEN
LIGHT_GRAY
MAGENTA
ORANGE
PINK
RED
WHITE
YELLOW
To use Karel's paint functionality, use the following commands:
Command | What it does |
---|---|
paint_corner(COLOR_NAME) |
Karel colors the corner he's standing on COLOR_NAME .
For example, to color the corner blue, you would write
paint_corner(BLUE).
|
corner_color_is(COLOR_NAME) |
A condition checking this question: Is the color of the corner
Karel is standing on COLOR NAME ?
|