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

// tristimulusWithAlpha returns tuple of R, G, B, A
static assert(BGRA8(255, 128, 10, 80).tristimulusWithAlpha == tuple(NormalizedInt!ubyte(255), NormalizedInt!ubyte(128), NormalizedInt!ubyte(10), NormalizedInt!ubyte(80)));

Meta