RGB.tristimulus

Return the RGB tristimulus values as a tuple. These will always be ordered (R, G, B). Any color channels not present will be 0.

struct RGB(string components_, ComponentType_, bool linear_ = false, RGBColorSpace colorSpace_ = RGBColorSpace.sRGB)
@safe pure nothrow @nogc @property const
tristimulus
()
if (
isNumeric!ComponentType_
)

Examples

// BGR color
auto c = BGR8(255, 128, 10);

// tristimulus always returns tuple in RGB order

Meta