This shows you the differences between two versions of the page.
api:colors [2014/07/07 10:29] vexatos created |
api:colors [2014/07/07 10:40] vexatos |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Colors API | ||
+ | ========= | ||
This "API" serves a global table that allows you to refer to colors by their name, instead of their associated ID/number. The table serves as a look-up in both directions, so for example `colors.blue` has the value `11`, whereas `colors[11]` has the string value `blue`. These are the defined colors: | This "API" serves a global table that allows you to refer to colors by their name, instead of their associated ID/number. The table serves as a look-up in both directions, so for example `colors.blue` has the value `11`, whereas `colors[11]` has the string value `blue`. These are the defined colors: | ||