Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

C++Python
Crgba8T<Cprecision>Crgba8Tbyte (Template instantiation, Cprecision = byte).

Template class for 8-bit RGBA colors.

Properties

TypeNameDescription
CprecisionrRed value (C++ only).
CprecisiongGreen value (C++ only).
CprecisionbBlue value (C++ only).
CprecisionaAlpha value (C++ only).
Cprecision[4]pChannelsRGBA values vector (C++ only).

Methods

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

assign

Initializes RGBA color.

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • No labels