RGBA32

Undocumented in source.

Members

Functions

closestANSIColour
auto closestANSIColour()
Undocumented in source. Be warned that the author may not have intended to support it.
closestMIRCColour
auto closestMIRCColour()
Undocumented in source. Be warned that the author may not have intended to support it.
distance
float distance(RGBA32 other)
Undocumented in source. Be warned that the author may not have intended to support it.
randomComplementaryColour
auto randomComplementaryColour()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

randomColour
auto randomColour()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

alpha
ubyte alpha;
Undocumented in source.
blue
ubyte blue;
Undocumented in source.
green
ubyte green;
Undocumented in source.
red
ubyte red;
Undocumented in source.

Examples

assert(RGBA32(0,0,0,0).closestMIRCColour == 1);
assert(RGBA32(0,0,1,0).closestMIRCColour == 1);
assert(RGBA32(0,0,255,0).closestMIRCColour == 60);

Meta