Color

Color is a utility struct for manipulating 32-bits RGBA colors.

Members

Functions

opBinary
Color opBinary(Color otherColor)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Color opBinary(E num)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Color otherColor)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
Color opOpAssign(Color otherColor)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
Color opOpAssign(E num)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

Black
auto Black;
Undocumented in source.
Blue
auto Blue;
Undocumented in source.
Cyan
auto Cyan;
Undocumented in source.
Green
auto Green;
Undocumented in source.
Magenta
auto Magenta;
Undocumented in source.
Red
auto Red;
Undocumented in source.
Transparent
auto Transparent;
Undocumented in source.
White
auto White;
Undocumented in source.
Yellow
auto Yellow;
Undocumented in source.

Variables

a
ubyte a;

Alpha component

b
ubyte b;

Blue component

g
ubyte g;

Green component

r
ubyte r;

Red component

See Also

Meta

Authors

Laurent Gomila, Jeremy DeHaan