The OpenD Programming Language

RGB.opCast

Cast to other color types.

This cast is a convenience which simply forwards the call to convertColor.

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

Meta