d2d.core.color3



class Color3;
Class containing aliases for each different HTML Color converted to floats.

Examples:
Color3 can be passed instead of 3 floats.
import std.format : format;

string formatColor(float r, float g, float b)
{
	return format("{%f, %f, %f}", r, g, b);
}

assert(formatColor(Color3.White) == formatColor(1, 1, 1));

import std.stdio : writeln;

void example(float r, float g, float b, float a)
{
	writeln(r, ": ", formatColor(g, b, a));
}

example(0.4f, Color3.Tomato);
example(Color3.Yellow, 1.2f);


alias AliceBlue = TList;
HTML Color: AliceBlue

alias AntiqueWhite = TList;
HTML Color: AntiqueWhite

alias Aqua = TList;
HTML Color: Aqua

alias Aquamarine = TList;
HTML Color: Aquamarine

alias Azure = TList;
HTML Color: Azure

alias Beige = TList;
HTML Color: Beige

alias Bisque = TList;
HTML Color: Bisque

alias Black = TList;
HTML Color: Black

alias BlanchedAlmond = TList;
HTML Color: BlanchedAlmond

alias Blue = TList;
HTML Color: Blue

alias BlueViolet = TList;
HTML Color: BlueViolet

alias Brown = TList;
HTML Color: Brown

alias BurlyWood = TList;
HTML Color: BurlyWood

alias CadetBlue = TList;
HTML Color: CadetBlue

alias Chartreuse = TList;
HTML Color: Chartreuse

alias Chocolate = TList;
HTML Color: Chocolate

alias Coral = TList;
HTML Color: Coral

alias CornflowerBlue = TList;
HTML Color: CornflowerBlue

alias Cornsilk = TList;
HTML Color: Cornsilk

alias Crimson = TList;
HTML Color: Crimson

alias Cyan = TList;
HTML Color: Cyan

alias DarkBlue = TList;
HTML Color: DarkBlue

alias DarkCyan = TList;
HTML Color: DarkCyan

alias DarkGoldenRod = TList;
HTML Color: DarkGoldenRod

alias DarkGray = TList;
HTML Color: DarkGray

alias DarkGreen = TList;
HTML Color: DarkGreen

alias DarkKhaki = TList;
HTML Color: DarkKhaki

alias DarkMagenta = TList;
HTML Color: DarkMagenta

alias DarkOliveGreen = TList;
HTML Color: DarkOliveGreen

alias DarkOrange = TList;
HTML Color: DarkOrange

alias DarkOrchid = TList;
HTML Color: DarkOrchid

alias DarkRed = TList;
HTML Color: DarkRed

alias DarkSalmon = TList;
HTML Color: DarkSalmon

alias DarkSeaGreen = TList;
HTML Color: DarkSeaGreen

alias DarkSlateBlue = TList;
HTML Color: DarkSlateBlue

alias DarkSlateGray = TList;
HTML Color: DarkSlateGray

alias DarkTurquoise = TList;
HTML Color: DarkTurquoise

alias DarkViolet = TList;
HTML Color: DarkViolet

alias DeepPink = TList;
HTML Color: DeepPink

alias DeepSkyBlue = TList;
HTML Color: DeepSkyBlue

alias DimGray = TList;
HTML Color: DimGray

alias DodgerBlue = TList;
HTML Color: DodgerBlue

alias FireBrick = TList;
HTML Color: FireBrick

alias FloralWhite = TList;
HTML Color: FloralWhite

alias ForestGreen = TList;
HTML Color: ForestGreen

alias Fuchsia = TList;
HTML Color: Fuchsia

alias Gainsboro = TList;
HTML Color: Gainsboro

alias GhostWhite = TList;
HTML Color: GhostWhite

alias Gold = TList;
HTML Color: Gold

alias GoldenRod = TList;
HTML Color: GoldenRod

alias Gray = TList;
HTML Color: Gray

alias Green = TList;
HTML Color: Green

alias GreenYellow = TList;
HTML Color: GreenYellow

alias HoneyDew = TList;
HTML Color: HoneyDew

alias HotPink = TList;
HTML Color: HotPink

alias IndianRed = TList;
HTML Color: IndianRed

alias Indigo = TList;
HTML Color: Indigo

alias Ivory = TList;
HTML Color: Ivory

alias Khaki = TList;
HTML Color: Khaki

alias Lavender = TList;
HTML Color: Lavender

alias LavenderBlush = TList;
HTML Color: LavenderBlush

alias LawnGreen = TList;
HTML Color: LawnGreen

alias LemonChiffon = TList;
HTML Color: LemonChiffon

alias LightBlue = TList;
HTML Color: LightBlue

alias LightCoral = TList;
HTML Color: LightCoral

alias LightCyan = TList;
HTML Color: LightCyan

alias LightGoldenRodYellow = TList;
HTML Color: LightGoldenRodYellow

alias LightGray = TList;
HTML Color: LightGray

alias LightGreen = TList;
HTML Color: LightGreen

alias LightPink = TList;
HTML Color: LightPink

alias LightSalmon = TList;
HTML Color: LightSalmon

alias LightSeaGreen = TList;
HTML Color: LightSeaGreen

alias LightSkyBlue = TList;
HTML Color: LightSkyBlue

alias LightSlateGray = TList;
HTML Color: LightSlateGray

alias LightSteelBlue = TList;
HTML Color: LightSteelBlue

alias LightYellow = TList;
HTML Color: LightYellow

alias Lime = TList;
HTML Color: Lime

alias LimeGreen = TList;
HTML Color: LimeGreen

alias Linen = TList;
HTML Color: Linen

alias Magenta = TList;
HTML Color: Magenta

alias Maroon = TList;
HTML Color: Maroon

alias MediumAquaMarine = TList;
HTML Color: MediumAquaMarine

alias MediumBlue = TList;
HTML Color: MediumBlue

alias MediumOrchid = TList;
HTML Color: MediumOrchid

alias MediumPurple = TList;
HTML Color: MediumPurple

alias MediumSeaGreen = TList;
HTML Color: MediumSeaGreen

alias MediumSlateBlue = TList;
HTML Color: MediumSlateBlue

alias MediumSpringGreen = TList;
HTML Color: MediumSpringGreen

alias MediumTurquoise = TList;
HTML Color: MediumTurquoise

alias MediumVioletRed = TList;
HTML Color: MediumVioletRed

alias MidnightBlue = TList;
HTML Color: MidnightBlue

alias MintCream = TList;
HTML Color: MintCream

alias MistyRose = TList;
HTML Color: MistyRose

alias Moccasin = TList;
HTML Color: Moccasin

alias NavajoWhite = TList;
HTML Color: NavajoWhite

alias Navy = TList;
HTML Color: Navy

alias OldLace = TList;
HTML Color: OldLace

alias Olive = TList;
HTML Color: Olive

alias OliveDrab = TList;
HTML Color: OliveDrab

alias Orange = TList;
HTML Color: Orange

alias OrangeRed = TList;
HTML Color: OrangeRed

alias Orchid = TList;
HTML Color: Orchid

alias PaleGoldenRod = TList;
HTML Color: PaleGoldenRod

alias PaleGreen = TList;
HTML Color: PaleGreen

alias PaleTurquoise = TList;
HTML Color: PaleTurquoise

alias PaleVioletRed = TList;
HTML Color: PaleVioletRed

alias PapayaWhip = TList;
HTML Color: PapayaWhip

alias PeachPuff = TList;
HTML Color: PeachPuff

alias Peru = TList;
HTML Color: Peru

alias Pink = TList;
HTML Color: Pink

alias Plum = TList;
HTML Color: Plum

alias PowderBlue = TList;
HTML Color: PowderBlue

alias Purple = TList;
HTML Color: Purple

alias RebeccaPurple = TList;
HTML Color: RebeccaPurple

alias Red = TList;
HTML Color: Red

alias RosyBrown = TList;
HTML Color: RosyBrown

alias RoyalBlue = TList;
HTML Color: RoyalBlue

alias SaddleBrown = TList;
HTML Color: SaddleBrown

alias Salmon = TList;
HTML Color: Salmon

alias SandyBrown = TList;
HTML Color: SandyBrown

alias SeaGreen = TList;
HTML Color: SeaGreen

alias SeaShell = TList;
HTML Color: SeaShell

alias Sienna = TList;
HTML Color: Sienna

alias Silver = TList;
HTML Color: Silver

alias SkyBlue = TList;
HTML Color: SkyBlue

alias SlateBlue = TList;
HTML Color: SlateBlue

alias SlateGray = TList;
HTML Color: SlateGray

alias Snow = TList;
HTML Color: Snow

alias SpringGreen = TList;
HTML Color: SpringGreen

alias SteelBlue = TList;
HTML Color: SteelBlue

alias Tan = TList;
HTML Color: Tan

alias Teal = TList;
HTML Color: Teal

alias Thistle = TList;
HTML Color: Thistle

alias Tomato = TList;
HTML Color: Tomato

alias Turquoise = TList;
HTML Color: Turquoise

alias Violet = TList;
HTML Color: Violet

alias Wheat = TList;
HTML Color: Wheat

alias White = TList;
HTML Color: White

alias WhiteSmoke = TList;
HTML Color: WhiteSmoke

alias Yellow = TList;
HTML Color: Yellow

alias YellowGreen = TList;
HTML Color: YellowGreen


Page generated by Ddoc.