Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
C++Python
Crgba8T<Cprecision>Crgba8Tbyte (Template instantiation, Cprecision = byte).

...

NameDescription
Crgba8T#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, Python only).

Anchor
assign
assign

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 )

...