Crgba8T
C++ | Python |
---|---|
Crgba8T<Cprecision> | Crgba8Tbyte (Template instantiation, Cprecision = byte). |
Template class for 8-bit RGBA colors.
Inherited by
Properties
Type | Name | Description |
---|---|---|
Cprecision | r | Red value (C++ only). |
Cprecision | g | Green value (C++ only). |
Cprecision | b | Blue value (C++ only). |
Cprecision | a | Alpha value (C++ only). |
Cprecision[4] | pChannels | RGBA values vector (C++ only). |
Methods
Name | Description |
---|---|
assign | Initializes RGB color. |
r | Returns red color (Python only). |
g | Returns green color (Python only). |
b | Returns blue color (Python only). |
a | Returns alpha value (Python only). |
[] | Returns color by index (0 = red, 1 = green, 2 = blue, Python only). |
assign
Initializes RGBA color.
Language | Syntax |
---|---|
C++ | void assign( Cprecision cr, Cprecision cg, Cprecision cb, Cprecision ca ) |
Python | void assign( int cr, ing, cg, int cb, int ca ) |