1 module d2d.core.color3; 2 3 import d2d; 4 5 /// Class containing aliases for each different HTML Color converted to floats. 6 class Color3 7 { 8 /// HTML Color: <span style='background-color: AliceBlue;'>AliceBlue</span> 9 alias AliceBlue = AliasSeq!(0.9411764705882353, 0.9725490196078431, 1); 10 /// HTML Color: <span style='background-color: AntiqueWhite;'>AntiqueWhite</span> 11 alias AntiqueWhite = AliasSeq!(0.9803921568627451, 0.9215686274509803, 0.8431372549019608); 12 /// HTML Color: <span style='background-color: Aqua;'>Aqua</span> 13 alias Aqua = AliasSeq!(0, 1, 1); 14 /// HTML Color: <span style='background-color: Aquamarine;'>Aquamarine</span> 15 alias Aquamarine = AliasSeq!(0.4980392156862745, 1, 0.8313725490196079); 16 /// HTML Color: <span style='background-color: Azure;'>Azure</span> 17 alias Azure = AliasSeq!(0.9411764705882353, 1, 1); 18 /// HTML Color: <span style='background-color: Beige;'>Beige</span> 19 alias Beige = AliasSeq!(0.9607843137254902, 0.9607843137254902, 0.8627450980392157); 20 /// HTML Color: <span style='background-color: Bisque;'>Bisque</span> 21 alias Bisque = AliasSeq!(1, 0.8941176470588236, 0.7686274509803922); 22 /// HTML Color: <span style='background-color: Black; color: White;'>Black</span> 23 alias Black = AliasSeq!(0, 0, 0); 24 /// HTML Color: <span style='background-color: BlanchedAlmond;'>BlanchedAlmond</span> 25 alias BlanchedAlmond = AliasSeq!(1, 0.9215686274509803, 0.803921568627451); 26 /// HTML Color: <span style='background-color: Blue; color: White;'>Blue</span> 27 alias Blue = AliasSeq!(0, 0, 1); 28 /// HTML Color: <span style='background-color: BlueViolet;'>BlueViolet</span> 29 alias BlueViolet = AliasSeq!(0.5411764705882353, 0.16862745098039217, 0.8862745098039215); 30 /// HTML Color: <span style='background-color: Brown;'>Brown</span> 31 alias Brown = AliasSeq!(0.6470588235294118, 0.16470588235294117, 0.16470588235294117); 32 /// HTML Color: <span style='background-color: BurlyWood;'>BurlyWood</span> 33 alias BurlyWood = AliasSeq!(0.8705882352941177, 0.7215686274509804, 0.5294117647058824); 34 /// HTML Color: <span style='background-color: CadetBlue;'>CadetBlue</span> 35 alias CadetBlue = AliasSeq!(0.37254901960784315, 0.6196078431372549, 0.6274509803921569); 36 /// HTML Color: <span style='background-color: Chartreuse;'>Chartreuse</span> 37 alias Chartreuse = AliasSeq!(0.4980392156862745, 1, 0); 38 /// HTML Color: <span style='background-color: Chocolate;'>Chocolate</span> 39 alias Chocolate = AliasSeq!(0.8235294117647058, 0.4117647058823529, 0.11764705882352941); 40 /// HTML Color: <span style='background-color: Coral;'>Coral</span> 41 alias Coral = AliasSeq!(1, 0.4980392156862745, 0.3137254901960784); 42 /// HTML Color: <span style='background-color: CornflowerBlue;'>CornflowerBlue</span> 43 alias CornflowerBlue = AliasSeq!(0.39215686274509803, 0.5843137254901961, 0.9294117647058824); 44 /// HTML Color: <span style='background-color: Cornsilk;'>Cornsilk</span> 45 alias Cornsilk = AliasSeq!(1, 0.9725490196078431, 0.8627450980392157); 46 /// HTML Color: <span style='background-color: Crimson;'>Crimson</span> 47 alias Crimson = AliasSeq!(0.8627450980392157, 0.0784313725490196, 0.23529411764705882); 48 /// HTML Color: <span style='background-color: Cyan;'>Cyan</span> 49 alias Cyan = AliasSeq!(0, 1, 1); 50 /// HTML Color: <span style='background-color: DarkBlue;'>DarkBlue</span> 51 alias DarkBlue = AliasSeq!(0, 0, 0.5450980392156862); 52 /// HTML Color: <span style='background-color: DarkCyan;'>DarkCyan</span> 53 alias DarkCyan = AliasSeq!(0, 0.5450980392156862, 0.5450980392156862); 54 /// HTML Color: <span style='background-color: DarkGoldenRod;'>DarkGoldenRod</span> 55 alias DarkGoldenRod = AliasSeq!(0.7215686274509804, 0.5254901960784314, 0.043137254901960784); 56 /// HTML Color: <span style='background-color: DarkGray;'>DarkGray</span> 57 alias DarkGray = AliasSeq!(0.6627450980392157, 0.6627450980392157, 0.6627450980392157); 58 /// HTML Color: <span style='background-color: DarkGreen;'>DarkGreen</span> 59 alias DarkGreen = AliasSeq!(0, 0.39215686274509803, 0); 60 /// HTML Color: <span style='background-color: DarkKhaki;'>DarkKhaki</span> 61 alias DarkKhaki = AliasSeq!(0.7411764705882353, 0.7176470588235294, 0.4196078431372549); 62 /// HTML Color: <span style='background-color: DarkMagenta;'>DarkMagenta</span> 63 alias DarkMagenta = AliasSeq!(0.5450980392156862, 0, 0.5450980392156862); 64 /// HTML Color: <span style='background-color: DarkOliveGreen;'>DarkOliveGreen</span> 65 alias DarkOliveGreen = AliasSeq!(0.3333333333333333, 0.4196078431372549, 0.1843137254901961); 66 /// HTML Color: <span style='background-color: DarkOrange;'>DarkOrange</span> 67 alias DarkOrange = AliasSeq!(1, 0.5490196078431373, 0); 68 /// HTML Color: <span style='background-color: DarkOrchid;'>DarkOrchid</span> 69 alias DarkOrchid = AliasSeq!(0.6, 0.19607843137254902, 0.8); 70 /// HTML Color: <span style='background-color: DarkRed;'>DarkRed</span> 71 alias DarkRed = AliasSeq!(0.5450980392156862, 0, 0); 72 /// HTML Color: <span style='background-color: DarkSalmon;'>DarkSalmon</span> 73 alias DarkSalmon = AliasSeq!(0.9137254901960784, 0.5882352941176471, 0.47843137254901963); 74 /// HTML Color: <span style='background-color: DarkSeaGreen;'>DarkSeaGreen</span> 75 alias DarkSeaGreen = AliasSeq!(0.5607843137254902, 0.7372549019607844, 0.5607843137254902); 76 /// HTML Color: <span style='background-color: DarkSlateBlue;'>DarkSlateBlue</span> 77 alias DarkSlateBlue = AliasSeq!(0.2823529411764706, 0.23921568627450981, 0.5450980392156862); 78 /// HTML Color: <span style='background-color: DarkSlateGray;'>DarkSlateGray</span> 79 alias DarkSlateGray = AliasSeq!(0.1843137254901961, 0.30980392156862746, 0.30980392156862746); 80 /// HTML Color: <span style='background-color: DarkTurquoise;'>DarkTurquoise</span> 81 alias DarkTurquoise = AliasSeq!(0, 0.807843137254902, 0.8196078431372549); 82 /// HTML Color: <span style='background-color: DarkViolet;'>DarkViolet</span> 83 alias DarkViolet = AliasSeq!(0.5803921568627451, 0, 0.8274509803921568); 84 /// HTML Color: <span style='background-color: DeepPink;'>DeepPink</span> 85 alias DeepPink = AliasSeq!(1, 0.0784313725490196, 0.5764705882352941); 86 /// HTML Color: <span style='background-color: DeepSkyBlue;'>DeepSkyBlue</span> 87 alias DeepSkyBlue = AliasSeq!(0, 0.7490196078431373, 1); 88 /// HTML Color: <span style='background-color: DimGray;'>DimGray</span> 89 alias DimGray = AliasSeq!(0.4117647058823529, 0.4117647058823529, 0.4117647058823529); 90 /// HTML Color: <span style='background-color: DodgerBlue;'>DodgerBlue</span> 91 alias DodgerBlue = AliasSeq!(0.11764705882352941, 0.5647058823529412, 1); 92 /// HTML Color: <span style='background-color: FireBrick;'>FireBrick</span> 93 alias FireBrick = AliasSeq!(0.6980392156862745, 0.13333333333333333, 0.13333333333333333); 94 /// HTML Color: <span style='background-color: FloralWhite;'>FloralWhite</span> 95 alias FloralWhite = AliasSeq!(1, 0.9803921568627451, 0.9411764705882353); 96 /// HTML Color: <span style='background-color: ForestGreen;'>ForestGreen</span> 97 alias ForestGreen = AliasSeq!(0.13333333333333333, 0.5450980392156862, 0.13333333333333333); 98 /// HTML Color: <span style='background-color: Fuchsia;'>Fuchsia</span> 99 alias Fuchsia = AliasSeq!(1, 0, 1); 100 /// HTML Color: <span style='background-color: Gainsboro;'>Gainsboro</span> 101 alias Gainsboro = AliasSeq!(0.8627450980392157, 0.8627450980392157, 0.8627450980392157); 102 /// HTML Color: <span style='background-color: GhostWhite;'>GhostWhite</span> 103 alias GhostWhite = AliasSeq!(0.9725490196078431, 0.9725490196078431, 1); 104 /// HTML Color: <span style='background-color: Gold;'>Gold</span> 105 alias Gold = AliasSeq!(1, 0.8431372549019608, 0); 106 /// HTML Color: <span style='background-color: GoldenRod;'>GoldenRod</span> 107 alias GoldenRod = AliasSeq!(0.8549019607843137, 0.6470588235294118, 0.12549019607843137); 108 /// HTML Color: <span style='background-color: Gray;'>Gray</span> 109 alias Gray = AliasSeq!(0.5019607843137255, 0.5019607843137255, 0.5019607843137255); 110 /// HTML Color: <span style='background-color: Green; color: White;'>Green</span> 111 alias Green = AliasSeq!(0, 0.5019607843137255, 0); 112 /// HTML Color: <span style='background-color: GreenYellow;'>GreenYellow</span> 113 alias GreenYellow = AliasSeq!(0.6784313725490196, 1, 0.1843137254901961); 114 /// HTML Color: <span style='background-color: HoneyDew;'>HoneyDew</span> 115 alias HoneyDew = AliasSeq!(0.9411764705882353, 1, 0.9411764705882353); 116 /// HTML Color: <span style='background-color: HotPink;'>HotPink</span> 117 alias HotPink = AliasSeq!(1, 0.4117647058823529, 0.7058823529411765); 118 /// HTML Color: <span style='background-color: IndianRed;'>IndianRed</span> 119 alias IndianRed = AliasSeq!(0.803921568627451, 0.3607843137254902, 0.3607843137254902); 120 /// HTML Color: <span style='background-color: Indigo; color: White;'>Indigo</span> 121 alias Indigo = AliasSeq!(0.29411764705882354, 0, 0.5098039215686274); 122 /// HTML Color: <span style='background-color: Ivory;'>Ivory</span> 123 alias Ivory = AliasSeq!(1, 1, 0.9411764705882353); 124 /// HTML Color: <span style='background-color: Khaki;'>Khaki</span> 125 alias Khaki = AliasSeq!(0.9411764705882353, 0.9019607843137255, 0.5490196078431373); 126 /// HTML Color: <span style='background-color: Lavender;'>Lavender</span> 127 alias Lavender = AliasSeq!(0.9019607843137255, 0.9019607843137255, 0.9803921568627451); 128 /// HTML Color: <span style='background-color: LavenderBlush;'>LavenderBlush</span> 129 alias LavenderBlush = AliasSeq!(1, 0.9411764705882353, 0.9607843137254902); 130 /// HTML Color: <span style='background-color: LawnGreen;'>LawnGreen</span> 131 alias LawnGreen = AliasSeq!(0.48627450980392156, 0.9882352941176471, 0); 132 /// HTML Color: <span style='background-color: LemonChiffon;'>LemonChiffon</span> 133 alias LemonChiffon = AliasSeq!(1, 0.9803921568627451, 0.803921568627451); 134 /// HTML Color: <span style='background-color: LightBlue;'>LightBlue</span> 135 alias LightBlue = AliasSeq!(0.6784313725490196, 0.8470588235294118, 0.9019607843137255); 136 /// HTML Color: <span style='background-color: LightCoral;'>LightCoral</span> 137 alias LightCoral = AliasSeq!(0.9411764705882353, 0.5019607843137255, 0.5019607843137255); 138 /// HTML Color: <span style='background-color: LightCyan;'>LightCyan</span> 139 alias LightCyan = AliasSeq!(0.8784313725490196, 1, 1); 140 /// HTML Color: <span style='background-color: LightGoldenRodYellow;'>LightGoldenRodYellow</span> 141 alias LightGoldenRodYellow = AliasSeq!(0.9803921568627451, 142 0.9803921568627451, 0.8235294117647058); 143 /// HTML Color: <span style='background-color: LightGray;'>LightGray</span> 144 alias LightGray = AliasSeq!(0.8274509803921568, 0.8274509803921568, 0.8274509803921568); 145 /// HTML Color: <span style='background-color: LightGreen;'>LightGreen</span> 146 alias LightGreen = AliasSeq!(0.5647058823529412, 0.9333333333333333, 0.5647058823529412); 147 /// HTML Color: <span style='background-color: LightPink;'>LightPink</span> 148 alias LightPink = AliasSeq!(1, 0.7137254901960784, 0.7568627450980392); 149 /// HTML Color: <span style='background-color: LightSalmon;'>LightSalmon</span> 150 alias LightSalmon = AliasSeq!(1, 0.6274509803921569, 0.47843137254901963); 151 /// HTML Color: <span style='background-color: LightSeaGreen;'>LightSeaGreen</span> 152 alias LightSeaGreen = AliasSeq!(0.12549019607843137, 0.6980392156862745, 0.6666666666666666); 153 /// HTML Color: <span style='background-color: LightSkyBlue;'>LightSkyBlue</span> 154 alias LightSkyBlue = AliasSeq!(0.5294117647058824, 0.807843137254902, 0.9803921568627451); 155 /// HTML Color: <span style='background-color: LightSlateGray;'>LightSlateGray</span> 156 alias LightSlateGray = AliasSeq!(0.4666666666666667, 0.5333333333333333, 0.6); 157 /// HTML Color: <span style='background-color: LightSteelBlue;'>LightSteelBlue</span> 158 alias LightSteelBlue = AliasSeq!(0.6901960784313725, 0.7686274509803922, 0.8705882352941177); 159 /// HTML Color: <span style='background-color: LightYellow;'>LightYellow</span> 160 alias LightYellow = AliasSeq!(1, 1, 0.8784313725490196); 161 /// HTML Color: <span style='background-color: Lime;'>Lime</span> 162 alias Lime = AliasSeq!(0, 1, 0); 163 /// HTML Color: <span style='background-color: LimeGreen;'>LimeGreen</span> 164 alias LimeGreen = AliasSeq!(0.19607843137254902, 0.803921568627451, 0.19607843137254902); 165 /// HTML Color: <span style='background-color: Linen;'>Linen</span> 166 alias Linen = AliasSeq!(0.9803921568627451, 0.9411764705882353, 0.9019607843137255); 167 /// HTML Color: <span style='background-color: Magenta;'>Magenta</span> 168 alias Magenta = AliasSeq!(1, 0, 1); 169 /// HTML Color: <span style='background-color: Maroon; color: White;'>Maroon</span> 170 alias Maroon = AliasSeq!(0.5019607843137255, 0, 0); 171 /// HTML Color: <span style='background-color: MediumAquaMarine; color: White;'>MediumAquaMarine</span> 172 alias MediumAquaMarine = AliasSeq!(0.4, 0.803921568627451, 0.6666666666666666); 173 /// HTML Color: <span style='background-color: MediumBlue; color: White;'>MediumBlue</span> 174 alias MediumBlue = AliasSeq!(0, 0, 0.803921568627451); 175 /// HTML Color: <span style='background-color: MediumOrchid; color: White;'>MediumOrchid</span> 176 alias MediumOrchid = AliasSeq!(0.7294117647058823, 0.3333333333333333, 0.8274509803921568); 177 /// HTML Color: <span style='background-color: MediumPurple; color: White;'>MediumPurple</span> 178 alias MediumPurple = AliasSeq!(0.5764705882352941, 0.4392156862745098, 0.8588235294117647); 179 /// HTML Color: <span style='background-color: MediumSeaGreen; color: White;'>MediumSeaGreen</span> 180 alias MediumSeaGreen = AliasSeq!(0.23529411764705882, 0.7019607843137254, 0.44313725490196076); 181 /// HTML Color: <span style='background-color: MediumSlateBlue; color: White;'>MediumSlateBlue</span> 182 alias MediumSlateBlue = AliasSeq!(0.4823529411764706, 0.40784313725490196, 0.9333333333333333); 183 /// HTML Color: <span style='background-color: MediumSpringGreen; color: White;'>MediumSpringGreen</span> 184 alias MediumSpringGreen = AliasSeq!(0, 0.9803921568627451, 0.6039215686274509); 185 /// HTML Color: <span style='background-color: MediumTurquoise; color: White;'>MediumTurquoise</span> 186 alias MediumTurquoise = AliasSeq!(0.2823529411764706, 0.8196078431372549, 0.8); 187 /// HTML Color: <span style='background-color: MediumVioletRed; color: White;'>MediumVioletRed</span> 188 alias MediumVioletRed = AliasSeq!(0.7803921568627451, 0.08235294117647059, 0.5215686274509804); 189 /// HTML Color: <span style='background-color: MidnightBlue; color: White;'>MidnightBlue</span> 190 alias MidnightBlue = AliasSeq!(0.09803921568627451, 0.09803921568627451, 0.4392156862745098); 191 /// HTML Color: <span style='background-color: MintCream;'>MintCream</span> 192 alias MintCream = AliasSeq!(0.9607843137254902, 1, 0.9803921568627451); 193 /// HTML Color: <span style='background-color: MistyRose;'>MistyRose</span> 194 alias MistyRose = AliasSeq!(1, 0.8941176470588236, 0.8823529411764706); 195 /// HTML Color: <span style='background-color: Moccasin;'>Moccasin</span> 196 alias Moccasin = AliasSeq!(1, 0.8941176470588236, 0.7098039215686275); 197 /// HTML Color: <span style='background-color: NavajoWhite;'>NavajoWhite</span> 198 alias NavajoWhite = AliasSeq!(1, 0.8705882352941177, 0.6784313725490196); 199 /// HTML Color: <span style='background-color: Navy; color: White;'>Navy</span> 200 alias Navy = AliasSeq!(0, 0, 0.5019607843137255); 201 /// HTML Color: <span style='background-color: OldLace;'>OldLace</span> 202 alias OldLace = AliasSeq!(0.9921568627450981, 0.9607843137254902, 0.9019607843137255); 203 /// HTML Color: <span style='background-color: Olive;'>Olive</span> 204 alias Olive = AliasSeq!(0.5019607843137255, 0.5019607843137255, 0); 205 /// HTML Color: <span style='background-color: OliveDrab;'>OliveDrab</span> 206 alias OliveDrab = AliasSeq!(0.4196078431372549, 0.5568627450980392, 0.13725490196078433); 207 /// HTML Color: <span style='background-color: Orange;'>Orange</span> 208 alias Orange = AliasSeq!(1, 0.6470588235294118, 0); 209 /// HTML Color: <span style='background-color: OrangeRed;'>OrangeRed</span> 210 alias OrangeRed = AliasSeq!(1, 0.27058823529411763, 0); 211 /// HTML Color: <span style='background-color: Orchid;'>Orchid</span> 212 alias Orchid = AliasSeq!(0.8549019607843137, 0.4392156862745098, 0.8392156862745098); 213 /// HTML Color: <span style='background-color: PaleGoldenRod;'>PaleGoldenRod</span> 214 alias PaleGoldenRod = AliasSeq!(0.9333333333333333, 0.9098039215686274, 0.6666666666666666); 215 /// HTML Color: <span style='background-color: PaleGreen;'>PaleGreen</span> 216 alias PaleGreen = AliasSeq!(0.596078431372549, 0.984313725490196, 0.596078431372549); 217 /// HTML Color: <span style='background-color: PaleTurquoise;'>PaleTurquoise</span> 218 alias PaleTurquoise = AliasSeq!(0.6862745098039216, 0.9333333333333333, 0.9333333333333333); 219 /// HTML Color: <span style='background-color: PaleVioletRed;'>PaleVioletRed</span> 220 alias PaleVioletRed = AliasSeq!(0.8588235294117647, 0.4392156862745098, 0.5764705882352941); 221 /// HTML Color: <span style='background-color: PapayaWhip;'>PapayaWhip</span> 222 alias PapayaWhip = AliasSeq!(1, 0.9372549019607843, 0.8352941176470589); 223 /// HTML Color: <span style='background-color: PeachPuff;'>PeachPuff</span> 224 alias PeachPuff = AliasSeq!(1, 0.8549019607843137, 0.7254901960784313); 225 /// HTML Color: <span style='background-color: Peru;'>Peru</span> 226 alias Peru = AliasSeq!(0.803921568627451, 0.5215686274509804, 0.24705882352941178); 227 /// HTML Color: <span style='background-color: Pink;'>Pink</span> 228 alias Pink = AliasSeq!(1, 0.7529411764705882, 0.796078431372549); 229 /// HTML Color: <span style='background-color: Plum;'>Plum</span> 230 alias Plum = AliasSeq!(0.8666666666666667, 0.6274509803921569, 0.8666666666666667); 231 /// HTML Color: <span style='background-color: PowderBlue;'>PowderBlue</span> 232 alias PowderBlue = AliasSeq!(0.6901960784313725, 0.8784313725490196, 0.9019607843137255); 233 /// HTML Color: <span style='background-color: Purple; color: White;'>Purple</span> 234 alias Purple = AliasSeq!(0.5019607843137255, 0, 0.5019607843137255); 235 /// HTML Color: <span style='background-color: RebeccaPurple; color: White;'>RebeccaPurple</span> 236 alias RebeccaPurple = AliasSeq!(0.4, 0.2, 0.6); 237 /// HTML Color: <span style='background-color: Red; color: White;'>Red</span> 238 alias Red = AliasSeq!(1, 0, 0); 239 /// HTML Color: <span style='background-color: RosyBrown;'>RosyBrown</span> 240 alias RosyBrown = AliasSeq!(0.7372549019607844, 0.5607843137254902, 0.5607843137254902); 241 /// HTML Color: <span style='background-color: RoyalBlue;'>RoyalBlue</span> 242 alias RoyalBlue = AliasSeq!(0.2549019607843137, 0.4117647058823529, 0.8823529411764706); 243 /// HTML Color: <span style='background-color: SaddleBrown;'>SaddleBrown</span> 244 alias SaddleBrown = AliasSeq!(0.5450980392156862, 0.27058823529411763, 0.07450980392156863); 245 /// HTML Color: <span style='background-color: Salmon;'>Salmon</span> 246 alias Salmon = AliasSeq!(0.9803921568627451, 0.5019607843137255, 0.4470588235294118); 247 /// HTML Color: <span style='background-color: SandyBrown;'>SandyBrown</span> 248 alias SandyBrown = AliasSeq!(0.9568627450980393, 0.6431372549019608, 0.3764705882352941); 249 /// HTML Color: <span style='background-color: SeaGreen;'>SeaGreen</span> 250 alias SeaGreen = AliasSeq!(0.1803921568627451, 0.5450980392156862, 0.3411764705882353); 251 /// HTML Color: <span style='background-color: SeaShell;'>SeaShell</span> 252 alias SeaShell = AliasSeq!(1, 0.9607843137254902, 0.9333333333333333); 253 /// HTML Color: <span style='background-color: Sienna;'>Sienna</span> 254 alias Sienna = AliasSeq!(0.6274509803921569, 0.3215686274509804, 0.17647058823529413); 255 /// HTML Color: <span style='background-color: Silver;'>Silver</span> 256 alias Silver = AliasSeq!(0.7529411764705882, 0.7529411764705882, 0.7529411764705882); 257 /// HTML Color: <span style='background-color: SkyBlue;'>SkyBlue</span> 258 alias SkyBlue = AliasSeq!(0.5294117647058824, 0.807843137254902, 0.9215686274509803); 259 /// HTML Color: <span style='background-color: SlateBlue;'>SlateBlue</span> 260 alias SlateBlue = AliasSeq!(0.41568627450980394, 0.35294117647058826, 0.803921568627451); 261 /// HTML Color: <span style='background-color: SlateGray;'>SlateGray</span> 262 alias SlateGray = AliasSeq!(0.4392156862745098, 0.5019607843137255, 0.5647058823529412); 263 /// HTML Color: <span style='background-color: Snow;'>Snow</span> 264 alias Snow = AliasSeq!(1, 0.9803921568627451, 0.9803921568627451); 265 /// HTML Color: <span style='background-color: SpringGreen;'>SpringGreen</span> 266 alias SpringGreen = AliasSeq!(0, 1, 0.4980392156862745); 267 /// HTML Color: <span style='background-color: SteelBlue;'>SteelBlue</span> 268 alias SteelBlue = AliasSeq!(0.27450980392156865, 0.5098039215686274, 0.7058823529411765); 269 /// HTML Color: <span style='background-color: Tan;'>Tan</span> 270 alias Tan = AliasSeq!(0.8235294117647058, 0.7058823529411765, 0.5490196078431373); 271 /// HTML Color: <span style='background-color: Teal;'>Teal</span> 272 alias Teal = AliasSeq!(0, 0.5019607843137255, 0.5019607843137255); 273 /// HTML Color: <span style='background-color: Thistle;'>Thistle</span> 274 alias Thistle = AliasSeq!(0.8470588235294118, 0.7490196078431373, 0.8470588235294118); 275 /// HTML Color: <span style='background-color: Tomato;'>Tomato</span> 276 alias Tomato = AliasSeq!(1, 0.38823529411764707, 0.2784313725490196); 277 /// HTML Color: <span style='background-color: Turquoise;'>Turquoise</span> 278 alias Turquoise = AliasSeq!(0.25098039215686274, 0.8784313725490196, 0.8156862745098039); 279 /// HTML Color: <span style='background-color: Violet;'>Violet</span> 280 alias Violet = AliasSeq!(0.9333333333333333, 0.5098039215686274, 0.9333333333333333); 281 /// HTML Color: <span style='background-color: Wheat;'>Wheat</span> 282 alias Wheat = AliasSeq!(0.9607843137254902, 0.8705882352941177, 0.7019607843137254); 283 /// HTML Color: <span style='background-color: White;'>White</span> 284 alias White = AliasSeq!(1, 1, 1); 285 /// HTML Color: <span style='background-color: WhiteSmoke;'>WhiteSmoke</span> 286 alias WhiteSmoke = AliasSeq!(0.9607843137254902, 0.9607843137254902, 0.9607843137254902); 287 /// HTML Color: <span style='background-color: Yellow;'>Yellow</span> 288 alias Yellow = AliasSeq!(1, 1, 0); 289 /// HTML Color: <span style='background-color: YellowGreen;'>YellowGreen</span> 290 alias YellowGreen = AliasSeq!(0.6039215686274509, 0.803921568627451, 0.19607843137254902); 291 } 292 293 /// Color3 can be passed instead of 3 floats. 294 unittest 295 { 296 import std.format : format; 297 298 string formatColor(float r, float g, float b) 299 { 300 return format("{%f, %f, %f}", r, g, b); 301 } 302 303 assert(formatColor(Color3.White) == formatColor(1, 1, 1)); 304 305 import std.stdio : writeln; 306 307 void example(float r, float g, float b, float a) 308 { 309 writeln(r, ": ", formatColor(g, b, a)); 310 } 311 312 example(0.4f, Color3.Tomato); 313 example(Color3.Yellow, 1.2f); 314 }