Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.
Tor (torbuntu) edited this page Jul 29, 2019 · 6 revisions

Leikr Colors

color methods

note: There are a number of predefined color's with int ID's.

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.

Contents

Home

API

under construction for version 1.10.1

Clone this wiki locally