Color

Color value representation

Constructors

this
this(ubyte alpha, Color c)

Construct a new color.

Members

Functions

blendColor
Color blendColor(Color wc)

Blend colors; alpha channels are ignored.

solidColor
Color solidColor(Color backColor)

Alpha blend this color with a background color to return a solid color (100% opaque).

toArgb
COLORREF toArgb()

Return the numeric color value.

toRgb
COLORREF toRgb()

Return the numeric red, green and blue color value.

Properties

r
ubyte r [@property getter]

Red, green, blue and alpha channel color values.

transparent
Color transparent [@property getter]

Return a completely transparent color value.

Meta