Color

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

Members

Functions

opBinary
Color opBinary(Color otherColor)

Overlolad of the +, -, and * operators.

opBinary
Color opBinary(E num)

Overlolad of the * and / operators.

opEquals
bool opEquals(Color otherColor)

Overload of the == and != operators.

opOpAssign
Color opOpAssign(Color otherColor)

Overlolad of the +=, -=, and *=` operators.

opOpAssign
Color opOpAssign(E num)

Overlolad of the *= and /= operators.

toString
string toString()

Get the string representation of the Color.

Variables

a
ubyte a;

Alpha component

b
ubyte b;

Blue component

g
ubyte g;

Green component

r
ubyte r;

Red component

Meta