Color: Difference between revisions
Jump to navigation
Jump to search
Talkingtoaj (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) (color cannot have 5 elements) |
||
Line 17: | Line 17: | ||
[1,1,1,1] // white | [1,1,1,1] // white | ||
[0,0.2,0 | [0,0.2,0,1] // camo green | ||
[0.73,0.24,0.11,1] // Rust orange | [0.73,0.24,0.11,1] // Rust orange | ||
[[Category: Arrays]] | [[Category: Arrays]] |
Revision as of 23:57, 5 March 2016
Format:
[r, g, b, a]
Description:
Color - r is the intensity of red, g is the intensity of green, b is the intensity of blue.
a is alpha (opacity). An alpha value of 0 means totally transparent and a value of 1 means totally opaque.
All values range from 0 to 1.
Here are a few colors to start you off:
[0.3,0.3,0.5,1]; // mauve purple
[1,1,1,1] // white
[0,0.2,0,1] // camo green
[0.73,0.24,0.11,1] // Rust orange