dsfml.graphics.color



struct Color;
Color is an utility structure for manipulating colors

static Color opCall(ubyte r, ubyte g, ubyte b, ubyte a = cast(ubyte)255);
Construct the color from its 4 RGBA components

Params:
ubyte r Red component (0 .. 255)
ubyte g Green component (0 .. 255)
ubyte b Blue component (0 .. 255)
ubyte a Alpha component (0 .. 255) (255 by default)

int opEquals(Color color2);
Operator == and != overload to compare two colors

Color opAdd(Color color2);
Operator + overload to add two colors

Color opAddAssign(Color color2);
Operator += overload

Color opMul(Color color2);
Operator * overload to modulate colors

Color opMulAssign(Color color2);
Operator *= overload

static Color BLACK;
Black predefined color

static Color WHITE;
White predefined color

static Color RED;
Red predefined color

static Color GREEN;
Green predefined color

static Color BLUE;
Blue predefined color

static Color YELLOW;
Yellow predefined color

static Color MAGENTA;
Magenta predefined color

static Color CYAN;
Cyan predefined color

ubyte r;
Red component

ubyte g;
Green component

ubyte b;
Blue component

ubyte a;
Alpha (transparency) component


Page generated by Ddoc.