RGB.tristimulusWithAlpha

Return the RGB tristimulus values + alpha as a tuple. These will always be ordered (R, G, B, A).

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

Examples

// BGRA color
auto c = BGRA8(255, 128, 10, 80);

// tristimulusWithAlpha always returns tuple in RGBA order

Meta