C++ | Python |
---|---|
Crgb8T<Cprecision> | Crgb8Tbyte (Template instantiation where , Cprecision = byte). |
Template class for 8-bit RGB colors.
...
Name | Description |
---|---|
Crgb8T#assign | Initializes RGB color |
r | Returns red color (Python only) |
g | Returns green color (Python only) |
b | Returns blue color (Python only) |
[] | Returns color by index (0 = red, 1 = green, 2 = blue). |
Anchor | ||||
---|---|---|---|---|
|
assign
Initializes RGB color.
Language | Syntax |
---|---|
C++ | void assign( Cprecision cr, Cprecision cg, Cprecision cb ) |
Python | void assign( int cr, ing, cg, int cb ) |
...