Color

Various representations of color with various accessibility modes.

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]
Undocumented in source. Be warned that the author may not have intended to support it.
alpha
ubyte alpha [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
alpha
ubyte alpha [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
alpha
ubyte alpha [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
blue
ubyte blue [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
blue
ubyte blue [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
blue
ubyte blue [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
blue
ubyte blue [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
green
ubyte green [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
green
ubyte green [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
green
ubyte green [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
green
ubyte green [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
red
ubyte red [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
red
ubyte red [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
red
ubyte red [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
red
ubyte red [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Unions

__anonymous
union __anonymous
Undocumented in source.

Meta