Function SetColor
SetColor(color)
The function sets a color for all upcoming graphics call. By default the color is white. Example:
SetColor ("yellow")
DrawRectangle (100, 100, 300, 200)
This is how result would look like (red coordinates are just for reference):
Possible values of colors are: "red", "green", "blue", "white", "silver", "gray", "black", "maroon", "yellow", "olive", "lime", "aqua", "teal", "navy", "fuchsia", "purple", "indigo", "violet", "pink", "orange", "cyan" and "brown".
It is also possible to set color in hex format (RRGGBBAA) similar to HTML/CSS. This way the colors can be transparent:
SetColor ("yellow")
DrawRectangle (100, 100, 250, 200)
SetColor ("00FF00AA")
DrawRectangle (200, 100, 300, 200)
This is how result would look like (red coordinates are just for reference):