Crgb8T

C++Python
Crgb8T<Cprecision>Crgb8Tbyte (Template instantiation, Cprecision = byte).

Template class for 8-bit RGB colors.

Inherited by

Crgb8 and Crgb16.

Properties

TypeNameDescription
CprecisionrRed value (C++ only).
CprecisiongGreen value (C++ only).
CprecisionbBlue value (C++ only).
Cprecision[3]pChannelsRGB values vector (C++ only).

Methods

NameDescription
assignInitializes RGB color.
rReturns red color (Python only).
gReturns green color (Python only).
bReturns blue color (Python only).
[]Returns color by index (0 = red, 1 = green, 2 = blue, Python only).

assign

Initializes RGB color.

LanguageSyntax
C++void assign( Cprecision cr, Cprecision cg, Cprecision cb )
Pythonvoid assign( int cr, ing, cg, int cb )