The OpenD Programming Language

HSx.opCast

Cast to other color types.

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

struct HSx(HSxType type_, ComponentType_ = float, RGBColorSpace colorSpace_ = RGBColorSpace.sRGB)
@safe pure nothrow @nogc const
Color
opCast
(
Color
)
()
if (
isColor!Color
)
if (
isFloatingPoint!ComponentType_ ||
isUnsigned!ComponentType_
)

Meta