This repository has been archived by the owner on Nov 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Colors
Tor (torbuntu) edited this page Jul 29, 2019
·
6 revisions
ID | Name |
---|---|
0 | BLACK |
1 | BLUE |
2 | BROWN |
3 | CHARTREUSE |
4 | CLEAR |
5 | CORAL |
6 | CYAN |
7 | DARK_GRAY |
8 | FIREBRICK |
9 | FOREST |
10 | GOLD |
11 | GOLDENROD |
12 | GRAY |
13 | GREEN |
14 | LIGHT_GRAY |
15 | LIME |
16 | MAGENTA |
17 | MAROON |
18 | NAVY |
19 | OLIVE |
20 | ORANGE |
21 | PINK |
22 | PURPLE |
23 | RED |
24 | ROYAL |
25 | SALMON |
26 | SCARLET |
27 | SKY |
28 | SLATE |
29 | TAN |
30 | TEAL |
31 | VIOLET |
32 | WHITE |
33 | YELLOW |
34+ | BLACK |
Color API | |
---|---|
void drawColor(int color) |
sets the color for the shape drawing methods with the given ID. |
void drawColor(float r, float gr, float b) |
sets the color for the shape drawing methods with the given rgb float values. |
void bgColor(int color) |
Sets the background color of the screen given the color ID. |
void bgColor(float r, float gr, float b) |
Sets the background color of the screen given the rgb color values. |
void bgColor(float[] color) |
Sets the background color of the screen given an array of rgb values. |