Color: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
(Improved description of alpha value)
Line 7: Line 7:
Color - r is the intensity of red, g is the intensity of green, b is the intensity of blue.
Color - r is the intensity of red, g is the intensity of green, b is the intensity of blue.


a is alpha (1 - transparency).
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.
All values range from 0 to 1.

Revision as of 21:24, 8 August 2014

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.