RGBAf

A 32-bit float tristimulus sRGB color, with alpha. This is the most common encoding, and is here to avoid needless conversion for this case. This is what most CSS functions resolve to, because of precision needs. Warning: r, g and b have a range 0 to 1, unlike in CSS. but a has a range 0 to 1. All can be float.nan ("none" in CSS).

Members

Variables

a
float a;
b
float b;
g
float g;
Undocumented in source.
r
float r;
Undocumented in source.

See Also

rgb and rgba functions to create one such color.

Meta