d2d.rendering.color



struct Color;
Color structure for Bitmaps and converting HSL -> RGB and Hex -> float[3].

Can be converted to a
SDL_Color
.

Only contains RGB Colors.

static const Color AliceBlue;
HTML color AliceBlue

static const Color AntiqueWhite;
HTML color AntiqueWhite

static const Color Aqua;
HTML color Aqua

static const Color Aquamarine;
HTML color Aquamarine

static const Color Azure;
HTML color Azure

static const Color Beige;
HTML color Beige

static const Color Bisque;
HTML color Bisque

static const Color Black;
HTML color Black

static const Color BlanchedAlmond;
HTML color BlanchedAlmond

static const Color Blue;
HTML color Blue

static const Color BlueViolet;
HTML color BlueViolet

static const Color Brown;
HTML color Brown

static const Color BurlyWood;
HTML color BurlyWood

static const Color CadetBlue;
HTML color CadetBlue

static const Color Chartreuse;
HTML color Chartreuse

static const Color Chocolate;
HTML color Chocolate

static const Color Coral;
HTML color Coral

static const Color CornflowerBlue;
HTML color CornflowerBlue

static const Color Cornsilk;
HTML color Cornsilk

static const Color Crimson;
HTML color Crimson

static const Color Cyan;
HTML color Cyan

static const Color DarkBlue;
HTML color DarkBlue

static const Color DarkCyan;
HTML color DarkCyan

static const Color DarkGoldenRod;
HTML color DarkGoldenRod

static const Color DarkGray;
HTML color DarkGray

static const Color DarkGreen;
HTML color DarkGreen

static const Color DarkKhaki;
HTML color DarkKhaki

static const Color DarkMagenta;
HTML color DarkMagenta

static const Color DarkOliveGreen;
HTML color DarkOliveGreen

static const Color DarkOrange;
HTML color DarkOrange

static const Color DarkOrchid;
HTML color DarkOrchid

static const Color DarkRed;
HTML color DarkRed

static const Color DarkSalmon;
HTML color DarkSalmon

static const Color DarkSeaGreen;
HTML color DarkSeaGreen

static const Color DarkSlateBlue;
HTML color DarkSlateBlue

static const Color DarkSlateGray;
HTML color DarkSlateGray

static const Color DarkTurquoise;
HTML color DarkTurquoise

static const Color DarkViolet;
HTML color DarkViolet

static const Color DeepPink;
HTML color DeepPink

static const Color DeepSkyBlue;
HTML color DeepSkyBlue

static const Color DimGray;
HTML color DimGray

static const Color DodgerBlue;
HTML color DodgerBlue

static const Color FireBrick;
HTML color FireBrick

static const Color FloralWhite;
HTML color FloralWhite

static const Color ForestGreen;
HTML color ForestGreen

static const Color Fuchsia;
HTML color Fuchsia

static const Color Gainsboro;
HTML color Gainsboro

static const Color GhostWhite;
HTML color GhostWhite

static const Color Gold;
HTML color Gold

static const Color GoldenRod;
HTML color GoldenRod

static const Color Gray;
HTML color Gray

static const Color Green;
HTML color Green

static const Color GreenYellow;
HTML color GreenYellow

static const Color HoneyDew;
HTML color HoneyDew

static const Color HotPink;
HTML color HotPink

static const Color IndianRed;
HTML color IndianRed

static const Color Indigo;
HTML color Indigo

static const Color Ivory;
HTML color Ivory

static const Color Khaki;
HTML color Khaki

static const Color Lavender;
HTML color Lavender

static const Color LavenderBlush;
HTML color LavenderBlush

static const Color LawnGreen;
HTML color LawnGreen

static const Color LemonChiffon;
HTML color LemonChiffon

static const Color LightBlue;
HTML color LightBlue

static const Color LightCoral;
HTML color LightCoral

static const Color LightCyan;
HTML color LightCyan

static const Color LightGoldenRodYellow;
HTML color LightGoldenRodYellow

static const Color LightGray;
HTML color LightGray

static const Color LightGreen;
HTML color LightGreen

static const Color LightPink;
HTML color LightPink

static const Color LightSalmon;
HTML color LightSalmon

static const Color LightSeaGreen;
HTML color LightSeaGreen

static const Color LightSkyBlue;
HTML color LightSkyBlue

static const Color LightSlateGray;
HTML color LightSlateGray

static const Color LightSteelBlue;
HTML color LightSteelBlue

static const Color LightYellow;
HTML color LightYellow

static const Color Lime;
HTML color Lime

static const Color LimeGreen;
HTML color LimeGreen

static const Color Linen;
HTML color Linen

static const Color Magenta;
HTML color Magenta

static const Color Maroon;
HTML color Maroon

static const Color MediumAquaMarine;
HTML color MediumAquaMarine

static const Color MediumBlue;
HTML color MediumBlue

static const Color MediumOrchid;
HTML color MediumOrchid

static const Color MediumPurple;
HTML color MediumPurple

static const Color MediumSeaGreen;
HTML color MediumSeaGreen

static const Color MediumSlateBlue;
HTML color MediumSlateBlue

static const Color MediumSpringGreen;
HTML color MediumSpringGreen

static const Color MediumTurquoise;
HTML color MediumTurquoise

static const Color MediumVioletRed;
HTML color MediumVioletRed

static const Color MidnightBlue;
HTML color MidnightBlue

static const Color MintCream;
HTML color MintCream

static const Color MistyRose;
HTML color MistyRose

static const Color Moccasin;
HTML color Moccasin

static const Color NavajoWhite;
HTML color NavajoWhite

static const Color Navy;
HTML color Navy

static const Color OldLace;
HTML color OldLace

static const Color Olive;
HTML color Olive

static const Color OliveDrab;
HTML color OliveDrab

static const Color Orange;
HTML color Orange

static const Color OrangeRed;
HTML color OrangeRed

static const Color Orchid;
HTML color Orchid

static const Color PaleGoldenRod;
HTML color PaleGoldenRod

static const Color PaleGreen;
HTML color PaleGreen

static const Color PaleTurquoise;
HTML color PaleTurquoise

static const Color PaleVioletRed;
HTML color PaleVioletRed

static const Color PapayaWhip;
HTML color PapayaWhip

static const Color PeachPuff;
HTML color PeachPuff

static const Color Peru;
HTML color Peru

static const Color Pink;
HTML color Pink

static const Color Plum;
HTML color Plum

static const Color PowderBlue;
HTML color PowderBlue

static const Color Purple;
HTML color Purple

static const Color RebeccaPurple;
HTML color RebeccaPurple

static const Color Red;
HTML color Red

static const Color RosyBrown;
HTML color RosyBrown

static const Color RoyalBlue;
HTML color RoyalBlue

static const Color SaddleBrown;
HTML color SaddleBrown

static const Color Salmon;
HTML color Salmon

static const Color SandyBrown;
HTML color SandyBrown

static const Color SeaGreen;
HTML color SeaGreen

static const Color SeaShell;
HTML color SeaShell

static const Color Sienna;
HTML color Sienna

static const Color Silver;
HTML color Silver

static const Color SkyBlue;
HTML color SkyBlue

static const Color SlateBlue;
HTML color SlateBlue

static const Color SlateGray;
HTML color SlateGray

static const Color Snow;
HTML color Snow

static const Color SpringGreen;
HTML color SpringGreen

static const Color SteelBlue;
HTML color SteelBlue

static const Color Tan;
HTML color Tan

static const Color Teal;
HTML color Teal

static const Color Thistle;
HTML color Thistle

static const Color Tomato;
HTML color Tomato

static const Color Turquoise;
HTML color Turquoise

static const Color Violet;
HTML color Violet

static const Color Wheat;
HTML color Wheat

static const Color White;
HTML color White

static const Color WhiteSmoke;
HTML color WhiteSmoke

static const Color Yellow;
HTML color Yellow

static const Color YellowGreen;
HTML color YellowGreen

this(ubyte r, ubyte g, ubyte b);
Creates a new 24 bit color using 3x 8 bit components.

Params:
ubyte r Red value in range 0 - 255
ubyte g Green value in range 0 - 255
ubyte b Blue value in range 0 - 255

static Color fromRGB(const int hex);
Creates a new 24 bit color.

Params:
int hex integer in RGB byte order

static Color fromBGR(const int hex);
Creates a new 24 bit color.

Params:
int hex integer in BGR byte order

void fromHSL(double hue, double saturation, double lightness);
Converts from HSL to RGB

Params:
double hue Hue in range 0 - 1
double saturation Saturation in range 0 - 1
double lightness Lightness in range 0 - 1

const @property SDL_Color sdl_color();
Creates an SDL_Color from
this
.

@property ref ubyte R();
Red value in range 0 - 255 as a ubyte.

@property ref ubyte G();
Green value in range 0 - 255 as a ubyte.

@property ref ubyte B();
Blue value in range 0 - 255 as a ubyte.

const @property float fR();
Red value in range 0 - 1 as a float.

const @property float fG();
Green value in range 0 - 1 as a float.

const @property float fB();
Blue value in range 0 - 1 as a float.

const @property vec3 f();
RGB in range 0 - 1 as vec3

const @property int RGB();
Color as RGB hex.

const @property int BGR();
Color as BGR hex.


Page generated by Ddoc.