Math::ColorRGBA struct

Four float values in the range [0, 1] that represent a color (the red, green, blue and alpha components).

The alpha component defines the opacity of the color: 0 alpha is fully transparent, 1 alpha is fully opaque.

Constructors, destructors, conversion operators

ColorRGBA(float r, float g, float b, float a)
ColorRGBA(ColorRGB color, float a)
ColorRGBA(Color color)
ColorRGBA()

Public functions

auto Set(float r, float g, float b, float a) -> ColorRGBA&
auto ToIntColor() const -> Color
Returns the integer representation of the given color (in the form of a Color value).
auto operator==(const ColorRGBA& b) const -> bool
auto operator!=(const ColorRGBA& b) const -> bool

Public variables

float r
float g
float b
float a