MapColor

Undocumented in source.

Constructors

this
this(ubyte id, ubyte r, ubyte g, ubyte b)
Undocumented in source.

Members

Variables

id
ubyte id;
Undocumented in source.

Inherited Members

From Color

r
ubyte r;
g
ubyte g;
b
ubyte b;
a
ubyte a;
Undocumented in source.
rgb
uint rgb [@property getter]
rgba
uint rgba [@property getter]
argb
uint argb [@property getter]

Encodes the colour as an unsigned integer to be used in the network operations or to be saved.

transparent
bool transparent [@property getter]

Checks if the colour is completely transparent (with the alpha channel equals to 0).

transparent
bool transparent [@property setter]

Sets the colour as transparent (with alpha = 0) or opaque (with alpha = 255).

opEquals
bool opEquals(Object o)

Compares two colours.

fromString
Color fromString(string c)

Converts and hexadecimal representation of a colour into a Color object.

fromRGB
Color fromRGB(uint c)

Converts an rgb-encoded integer to a Color.

Meta