Color

Various representations of color with various accessibility modes. Probably will be replaced with a struct from either CPUBLiT or dimage.

Constructors

this
this(ubyte alpha, ubyte red, ubyte green, ubyte blue)

Contructs a color from four individual values.

this
this(uint val)

Constructs a color from a single 32 bit unsigned integer.

Members

Functions

opBinary
Color opBinary(Color rhs)

Operator overloading for quick math. '*' is alpha-blending, '^' is XOR blitter, '&' is normal "blitter". Alpha is used from right hand side and kept on left hand side when needed

toString
string toString()

Returns a string for debugging.

Properties

alpha
ubyte alpha [@property getter]

Returns the alpha channel of the color

alpha
ubyte alpha [@property setter]

Sets the alpha channel of the color

alpha
ubyte alpha [@property getter]

Returns the alpha channel of the color

alpha
ubyte alpha [@property setter]

Sets the alpha channel of the color

blue
ubyte blue [@property getter]

Returns the blue channel of the color

blue
ubyte blue [@property setter]

Sets the blue channel of the color

blue
ubyte blue [@property getter]

Returns the blue channel of the color

blue
ubyte blue [@property setter]

Sets the blue channel of the color

green
ubyte green [@property getter]

Returns the green channel of the color

green
ubyte green [@property setter]

Sets the green channel of the color

green
ubyte green [@property getter]

Returns the green channel of the color

green
ubyte green [@property setter]

Sets the green channel of the color

red
ubyte red [@property getter]

Returns the red channel of the color

red
ubyte red [@property setter]

Sets the red channel of the color

red
ubyte red [@property getter]

Returns the red channel of the color

red
ubyte red [@property setter]

Sets the red channel of the color

Unions

__anonymous
union __anonymous
Undocumented in source.

Meta