Cubios::Math::Color
Constructors
Color
Constructs RGBA color object
Synopsis
Arguments
- r - value of the red component
- g - value of the green component
- b - value of the blue component
Synopsis
Arguments
- r - value of the red component
- g - value of the green component
- b - value of the blue component
- a - value of the alpha component
Synopsis
Arguments
- v - color value in ARGB8888 format
Synopsis
Public Methods
Set
Summary
Sets per-component values of the color
Arguments
- r - value of the red component
- g - value of the green component
- b - value of the blue component
- a - value of the alpha component
Synopsis
Arguments
- r - value of the red component
- g - value of the green component
- b - value of the blue component
Synopsis
Arguments
- v - color value in ARGB8888 format
Synopsis
SetA
Summary
Sets the value of alpha component of the color
Arguments
- a - alpha component value
Synopsis
SetAf
Summary
Sets the normalized value of alpha component of the color
Arguments
- a - alpha component value
Synopsis
SetAfSafe
Summary
Sets the normalized value of alpha component of the color clamping it to [0.0,1.0]
Arguments
- a - alpha component value
Synopsis
SetR
Sets the value of red component of the color
Arguments
- v - red component value
Synopsis
SetG
Sets the value of green component of the color
Arguments
- v - green component value
Synopsis
SetB
Summary
Sets the value of blue component of the color
Arguments
- v - blue component value
Synopsis
A
Summary
Returns the value of alpha component of the color
Synopsis
Af
Summary
Returns the normalized value of alpha component of the color
Synopsis
R
Summary
Returns the value of red component of the color
Synopsis
G
Summary
Returns the value of green component of the color
Synopsis
B
Summary
Returns the value of blue component of the color
Synopsis
Value
Summary
Returns hexadecimal value of the color in ARGB8888 format
Synopsis