Last update Sun May 11 01:02:34 2014

dmagick.ColorRGB

License:
zlib (See accompanying LICENSE file)

Authors:
Mike Wey

class ColorRGB: dmagick.Color.Color;

An RGB(A) Color.

this();


this(ubyte red, ubyte green, ubyte blue, ubyte opacity = 0);

Create a Color from the specified Bytes.

this(double red, double green, double blue, double opacity = 0);

Create a Color from the specified doubles. The values should be between 0.0 and 1.0.

this(string color);

Create a Color from a X11 color specification string

void redByte(ubyte red);
ubyte redByte();

The value for red as a byte

void greenByte(ubyte green);
ubyte greenByte();

The value for green as a byte

void blueByte(ubyte blue);
ubyte blueByte();

The value for blue as a byte

void red(double red);
double red();

The value for red as a double in the range [0.0 .. 1.0]

void green(double green);
double green();

The value for green as a double in the range [0.0 .. 1.0]

void blue(double blue);
double blue();

The value for blue as a double in the range [0.0 .. 1.0]