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 Nov 3, 2019
·
6 revisions
ID | Name |
---|---|
0 | CLEAR |
1 | WHITE |
2 | WHITE_M1 |
3 | LIGHT_GRAY |
4 | GRAY |
5 | DARK_GRAY |
6 | BLACK_P1 |
7 | BLACK |
8 | RED |
9 | GREEN |
10 | BLUE |
11 | MAROON |
12 | CORAL |
13 | SALMON |
14 | PINK |
15 | LIME |
16 | FOREST |
17 | OLIVE |
18 | NAVY |
19 | ROYAL |
20 | SKY |
21 | CYAN |
22 | TEAL |
23 | YELLOW |
24 | GOLD |
25 | GOLDENROD |
26 | ORANGE |
27 | BROWN |
28 | TAN |
29 | FIREBRICK |
30 | PURPLE |
31 | VIOLET |
32 | MAGENTA |
33+ | BLACK |
Color API | |
---|---|
void setColor(int color) |
sets the color for the shape drawing methods with the given ID. |
void setColor(String rgb) |
sets the color for the shape drawing methods with the given rgb in String values: "255,255,255" |
void setColor(String rgba, boolean useAlpha) |
Same as above except with flag to use alpha value as well. |
void setColor(int r, int g, int b) |
Sets color for the int rgb values. |
getDrawColor(int color) |
returns the Color object of given int color ID |
void bgColor(int color) |
Sets the background color of the screen given the color ID. |
void bgColor(String rgb) |
Sets the background color of the screen given the rgb color values: "255,255,255" |