1 /** 2 * Module for paint. 3 * 4 * Authors: 5 * Jacob Jensen 6 * License: 7 * https://github.com/PoisonEngine/poison-ui/blob/master/LICENSE 8 */ 9 module poison.ui.paint; 10 11 import dsfml.graphics : Color; 12 13 /// Paint structure. 14 struct Paint { 15 public: 16 /// The red channel. 17 ubyte r; 18 /// The green channel. 19 ubyte g; 20 /// The blue channel. 21 ubyte b; 22 /// The alpha channel. 23 ubyte a; 24 25 @property { 26 /// Gets the low-level sfml color equivalent to the paint. 27 Color sfmlColor() { 28 return Color(r,g,b,a); 29 } 30 } 31 } 32 33 /** 34 * Gets a painting from RGBA. 35 * Params: 36 * r = The red channel. 37 * g = The green channel. 38 * b = The blue channel. 39 * a = The alpha channel. 40 * Returns: 41 * The paint. 42 */ 43 Paint paintFromRGBA(ubyte r, ubyte g, ubyte b, ubyte a = 0xff) { 44 Paint p; 45 p.r = r; 46 p.g = g; 47 p.b = b; 48 p.a = a; 49 return p; 50 } 51 52 /** 53 * Gets paint from a color name. 54 * Params: 55 * name = The name of the color. 56 * Returns: 57 * The paint. 58 */ 59 Paint paintFromName(string name) { 60 import std..string : toLower; 61 62 switch (name.toLower()) { 63 case "aliceblue": return aliceBlue; 64 case "antiquewhite": return antiqueWhite; 65 case "aqua": return aqua; 66 case "aquamarine": return aquamarine; 67 case "azure": return azure; 68 case "beige": return beige; 69 case "bisque": return bisque; 70 case "black": return black; 71 case "blanchedalmond": return blanchedAlmond; 72 case "blue": return blue; 73 case "blueviolet": return blueViolet; 74 case "brown": return brown; 75 case "burlywood": return burlyWood; 76 case "cadetblue": return cadetBlue; 77 case "chartreuse": return chartreuse; 78 case "chocolate": return chocolate; 79 case "coral": return coral; 80 case "cornflowerblue": return cornflowerBlue; 81 case "cornsilk": return cornsilk; 82 case "crimson": return crimson; 83 case "cyan": return cyan; 84 case "darkblue": return darkBlue; 85 case "darkcyan": return darkCyan; 86 case "darkgoldenrod": return darkGoldenrod; 87 case "darkgrey": return darkGrey; 88 case "darkgray": return darkGray; 89 case "darkgreen": return darkGreen; 90 case "darkkhaki": return darkKhaki; 91 case "darkmagenta": return darkMagenta; 92 case "darkolivegreen": return darkOliveGreen; 93 case "darkorange": return darkOrange; 94 case "darkorchid": return darkOrchid; 95 case "darkred": return darkRed; 96 case "darksalmon": return darkSalmon; 97 case "darkseagreen": return darkSeaGreen; 98 case "darkslateblue": return darkSlateBlue; 99 case "darkslategray": return darkSlateGray; 100 case "darkslategrey": return darkSlateGrey; 101 case "darkturquoise": return darkTurquoise; 102 case "darkviolet": return darkViolet; 103 case "deeppink": return deepPink; 104 case "deepskyblue": return deepSkyBlue; 105 case "dimgray": return dimGray; 106 case "dimgrey": return dimGrey; 107 case "dodgerblue": return dodgerBlue; 108 case "firebrick": return fireBrick; 109 case "floralwhite": return floralWhite; 110 case "forestgreen": return forestGreen; 111 case "fuchsia": return fuchsia; 112 case "gainsboro": return gainsboro; 113 case "ghostwhite": return ghostWhite; 114 case "gold": return gold; 115 case "goldenrod": return goldenrod; 116 case "gray": return gray; 117 case "grey": return grey; 118 case "green": return green; 119 case "greenyellow": return greenYellow; 120 case "honeydew": return honeydew; 121 case "hotpink": return hotPink; 122 case "indianred": return indianRed; 123 case "indigo": return indigo; 124 case "ivory": return ivory; 125 case "khaki": return khaki; 126 case "lavender": return lavender; 127 case "lavenderblush": return lavenderBlush; 128 case "lawngreen": return lawnGreen; 129 case "lemonchiffon": return lemonChiffon; 130 case "lightblue": return lightBlue; 131 case "lightcoral": return lightCoral; 132 case "lightcyan": return lightCyan; 133 case "lightgoldenrodyellow": return lightGoldenrodYellow; 134 case "lightgreen": return lightGreen; 135 case "lightgray": return lightGray; 136 case "lightgrey": return lightGrey; 137 case "lightpink": return lightPink; 138 case "lightsalmon": return lightSalmon; 139 case "lightseagreen": return lightSeaGreen; 140 case "lightskyblue": return lightSkyBlue; 141 case "lightslategray": return lightSlateGray; 142 case "lightslategrey": return lightSlateGrey; 143 case "lightsteelblue": return lightSteelBlue; 144 case "lightyellow": return lightYellow; 145 case "lime": return lime; 146 case "limegreen": return limeGreen; 147 case "linen": return linen; 148 case "magenta": return magenta; 149 case "maroon": return maroon; 150 case "mediumaquamarine": return mediumAquamarine; 151 case "mediumblue": return mediumBlue; 152 case "mediumorchid": return mediumOrchid; 153 case "mediumpurple": return mediumPurple; 154 case "mediumseagreen": return mediumSeaGreen; 155 case "mediumslateblue": return mediumSlateBlue; 156 case "mediumspringgreen": return mediumSpringGreen; 157 case "mediumturquoise": return mediumTurquoise; 158 case "mediumvioletred": return mediumVioletRed; 159 case "midnightblue": return midnightBlue; 160 case "mintcream": return mintCream; 161 case "mistyrose": return mistyRose; 162 case "moccasin": return moccasin; 163 case "navajowhite": return navajoWhite; 164 case "navy": return navy; 165 case "oldlace": return oldLace; 166 case "olive": return olive; 167 case "olivedrab": return oliveDrab; 168 case "orange": return orange; 169 case "orangered": return orangeRed; 170 case "orchid": return orchid; 171 case "palegoldenrod": return paleGoldenrod; 172 case "palegreen": return paleGreen; 173 case "paleturquoise": return paleTurquoise; 174 case "palevioletred": return paleVioletRed; 175 case "papayawhip": return papayaWhip; 176 case "peachpuff": return peachPuff; 177 case "peru": return peru; 178 case "pink": return pink; 179 case "plum": return plum; 180 case "powderblue": return powderBlue; 181 case "purple": return purple; 182 case "red": return red; 183 case "rosybrown": return rosyBrown; 184 case "royalblue": return royalBlue; 185 case "saddlebrown": return saddleBrown; 186 case "salmon": return salmon; 187 case "sandybrown": return sandyBrown; 188 case "seagreen": return seaGreen; 189 case "seashell": return seashell; 190 case "sienna": return sienna; 191 case "silver": return silver; 192 case "skyblue": return skyBlue; 193 case "slateblue": return slateBlue; 194 case "slategray": return slateGray; 195 case "slategrey": return slateGrey; 196 case "snow": return snow; 197 case "springgreen": return springGreen; 198 case "steelblue": return steelBlue; 199 case "tan": return tan; 200 case "teal": return teal; 201 case "thistle": return thistle; 202 case "tomato": return tomato; 203 case "turquoise": return turquoise; 204 case "violet": return violet; 205 case "wheat": return wheat; 206 case "white": return white; 207 case "whitesmoke": return whiteSmoke; 208 case "yellow": return yellow; 209 case "yellowgreen": return yellowGreen; 210 default: return transparent; 211 } 212 } 213 214 /* Contrast & Misc */ 215 216 /// White paint. 217 Paint white = paintFromRGBA(0xff, 0xff, 0xff); 218 219 /// Black paint. 220 Paint black = paintFromRGBA(0x00, 0x00, 0x00); 221 222 /// Transparent paint. 223 Paint transparent = paintFromRGBA(0x00, 0x00, 0x00, 0x00); 224 225 /* Standard */ 226 227 /// Red paint. 228 Paint red = paintFromRGBA(0xff, 0x00, 0x00); 229 230 /// Green paint. 231 Paint green = paintFromRGBA(0x00, 0xff, 0x00); 232 233 /// Blue paint. 234 Paint blue = paintFromRGBA(0x00, 0x00, 0xff); 235 236 /* System colors */ 237 238 /// AliceBlue paint. 239 Paint aliceBlue = paintFromRGBA(0xf0, 0xf8, 0xff); 240 241 /// AntiqueWhite paint. 242 Paint antiqueWhite = paintFromRGBA(0xfa, 0xeb, 0xd7); 243 244 /// Aqua paint. 245 Paint aqua = paintFromRGBA(0x00, 0xff, 0xff); 246 247 /// Aquamarine paint. 248 Paint aquamarine = paintFromRGBA(0x7f, 0xff, 0xd4); 249 250 /// Azure paint. 251 Paint azure = paintFromRGBA(0xf0, 0xff, 0xff); 252 253 /// Beige paint. 254 Paint beige = paintFromRGBA(0xf5, 0xf5, 0xdc); 255 256 /// Bisque paint. 257 Paint bisque = paintFromRGBA(0xff, 0xe4, 0xc4); 258 259 /// BlanchedAlmond paint. 260 Paint blanchedAlmond = paintFromRGBA(0xff, 0xeb, 0xcd); 261 262 /// BlueViolet paint. 263 Paint blueViolet = paintFromRGBA(0x8a, 0x2b, 0xe2); 264 265 /// Brown paint. 266 Paint brown = paintFromRGBA(0xa5, 0x2a, 0x2a); 267 268 /// BurlyWood paint. 269 Paint burlyWood = paintFromRGBA(0xde, 0xb8, 0x87); 270 271 /// CadetBlue paint. 272 Paint cadetBlue = paintFromRGBA(0x5f, 0x9e, 0xa0); 273 274 /// Chartreuse paint. 275 Paint chartreuse = paintFromRGBA(0x7f, 0xff, 0x00); 276 277 /// Chocolate paint. 278 Paint chocolate = paintFromRGBA(0xd2, 0x69, 0x1e); 279 280 /// Coral paint. 281 Paint coral = paintFromRGBA(0xff, 0x7f, 0x50); 282 283 /// CornflowerBlue paint. 284 Paint cornflowerBlue = paintFromRGBA(0x64, 0x95, 0xed); 285 286 /// Cornsilk paint. 287 Paint cornsilk = paintFromRGBA(0xff, 0xf8, 0xdc); 288 289 /// Crimson paint. 290 Paint crimson = paintFromRGBA(0xdc, 0x14, 0x3c); 291 292 /// Cyan paint. 293 Paint cyan = paintFromRGBA(0x00, 0xff, 0xff); 294 295 /// DarkBlue paint. 296 Paint darkBlue = paintFromRGBA(0x00, 0x00, 0x8b); 297 298 /// DarkCyan paint. 299 Paint darkCyan = paintFromRGBA(0x00, 0x8b, 0x8b); 300 301 /// DarkGoldenrod paint. 302 Paint darkGoldenrod = paintFromRGBA(0xb8, 0x86, 0x0b); 303 304 /// DarkGrey paint. 305 Paint darkGrey = paintFromRGBA(0xa9, 0xa9, 0xa9); 306 307 /// DarkGray paint. 308 Paint darkGray = paintFromRGBA(0xa9, 0xa9, 0xa9); 309 310 /// DarkGreen paint. 311 Paint darkGreen = paintFromRGBA(0x00, 0x64, 0x00); 312 313 /// DarkKhaki paint. 314 Paint darkKhaki = paintFromRGBA(0xbd, 0xb7, 0x6b); 315 316 /// DarkMagenta paint. 317 Paint darkMagenta = paintFromRGBA(0x8b, 0x00, 0x8b); 318 319 /// DarkOliveGreen paint. 320 Paint darkOliveGreen = paintFromRGBA(0x55, 0x6b, 0x2f); 321 322 /// DarkOrange paint. 323 Paint darkOrange = paintFromRGBA(0xff, 0x8c, 0x00); 324 325 /// DarkOrchid paint. 326 Paint darkOrchid = paintFromRGBA(0x99, 0x32, 0xcc); 327 328 /// DarkRed paint. 329 Paint darkRed = paintFromRGBA(0x8b, 0x00, 0x00); 330 331 /// DarkSalmon paint. 332 Paint darkSalmon = paintFromRGBA(0xe9, 0x96, 0x7a); 333 334 /// DarkSeaGreen paint. 335 Paint darkSeaGreen = paintFromRGBA(0x8f, 0xbc, 0x8f); 336 337 /// DarkSlateBlue paint. 338 Paint darkSlateBlue = paintFromRGBA(0x48, 0x3d, 0x8b); 339 340 /// DarkSlateGray paint. 341 Paint darkSlateGray = paintFromRGBA(0x2f, 0x4f, 0x4f); 342 343 /// DarkSlateGrey paint. 344 Paint darkSlateGrey = paintFromRGBA(0x2f, 0x4f, 0x4f); 345 346 /// DarkTurquoise paint. 347 Paint darkTurquoise = paintFromRGBA(0x00, 0xce, 0xd1); 348 349 /// DarkViolet paint. 350 Paint darkViolet = paintFromRGBA(0x94, 0x00, 0xd3); 351 352 /// DeepPink paint. 353 Paint deepPink = paintFromRGBA(0xff, 0x14, 0x93); 354 355 /// DeepSkyBlue paint. 356 Paint deepSkyBlue = paintFromRGBA(0x00, 0xbf, 0xff); 357 358 /// DimGray paint. 359 Paint dimGray = paintFromRGBA(0x69, 0x69, 0x69); 360 361 /// DimGrey paint. 362 Paint dimGrey = paintFromRGBA(0x69, 0x69, 0x69); 363 364 /// DodgerBlue paint. 365 Paint dodgerBlue = paintFromRGBA(0x1e, 0x90, 0xff); 366 367 /// FireBrick paint. 368 Paint fireBrick = paintFromRGBA(0xb2, 0x22, 0x22); 369 370 /// FloralWhite paint. 371 Paint floralWhite = paintFromRGBA(0xff, 0xfa, 0xf0); 372 373 /// ForestGreen paint. 374 Paint forestGreen = paintFromRGBA(0x22, 0x8b, 0x22); 375 376 /// Fuchsia paint. 377 Paint fuchsia = paintFromRGBA(0xff, 0x00, 0xff); 378 379 /// Gainsboro paint. 380 Paint gainsboro = paintFromRGBA(0xdc, 0xdc, 0xdc); 381 382 /// GhostWhite paint. 383 Paint ghostWhite = paintFromRGBA(0xf8, 0xf8, 0xff); 384 385 /// Gold paint. 386 Paint gold = paintFromRGBA(0xff, 0xd7, 0x00); 387 388 /// Goldenrod paint. 389 Paint goldenrod = paintFromRGBA(0xda, 0xa5, 0x20); 390 391 /// Gray paint. 392 Paint gray = paintFromRGBA(0x80, 0x80, 0x80); 393 394 /// Grey paint. 395 Paint grey = paintFromRGBA(0x80, 0x80, 0x80); 396 397 /// GreenYellow paint. 398 Paint greenYellow = paintFromRGBA(0xad, 0xff, 0x2f); 399 400 /// Honeydew paint. 401 Paint honeydew = paintFromRGBA(0xf0, 0xff, 0xf0); 402 403 /// HotPink paint. 404 Paint hotPink = paintFromRGBA(0xff, 0x69, 0xb4); 405 406 /// IndianRed paint. 407 Paint indianRed = paintFromRGBA(0xcd, 0x5c, 0x5c); 408 409 /// Indigo paint. 410 Paint indigo = paintFromRGBA(0x4b, 0x00, 0x82); 411 412 /// Ivory paint. 413 Paint ivory = paintFromRGBA(0xff, 0xff, 0xf0); 414 415 /// Khaki paint. 416 Paint khaki = paintFromRGBA(0xf0, 0xe6, 0x8c); 417 418 /// Lavender paint. 419 Paint lavender = paintFromRGBA(0xe6, 0xe6, 0xfa); 420 421 /// LavenderBlush paint. 422 Paint lavenderBlush = paintFromRGBA(0xff, 0xf0, 0xf5); 423 424 /// LawnGreen paint. 425 Paint lawnGreen = paintFromRGBA(0x7c, 0xfc, 0x00); 426 427 /// LemonChiffon paint. 428 Paint lemonChiffon = paintFromRGBA(0xff, 0xfa, 0xcd); 429 430 /// LightBlue paint. 431 Paint lightBlue = paintFromRGBA(0xad, 0xd8, 0xe6); 432 433 /// LightCoral paint. 434 Paint lightCoral = paintFromRGBA(0xf0, 0x80, 0x80); 435 436 /// LightCyan paint. 437 Paint lightCyan = paintFromRGBA(0xe0, 0xff, 0xff); 438 439 /// LightGoldenrodYellow paint. 440 Paint lightGoldenrodYellow = paintFromRGBA(0xfa, 0xfa, 0xd2); 441 442 /// LightGreen paint. 443 Paint lightGreen = paintFromRGBA(0x90, 0xee, 0x90); 444 445 /// LightGray paint. 446 Paint lightGray = paintFromRGBA(0xd3, 0xd3, 0xd3); 447 448 /// LightGrey paint. 449 Paint lightGrey = paintFromRGBA(0xd3, 0xd3, 0xd3); 450 451 /// LightPink paint. 452 Paint lightPink = paintFromRGBA(0xff, 0xb6, 0xc1); 453 454 /// LightSalmon paint. 455 Paint lightSalmon = paintFromRGBA(0xff, 0xa0, 0x7a); 456 457 /// LightSeaGreen paint. 458 Paint lightSeaGreen = paintFromRGBA(0x20, 0xb2, 0xaa); 459 460 /// LightSkyBlue paint. 461 Paint lightSkyBlue = paintFromRGBA(0x87, 0xce, 0xfa); 462 463 /// LightSlateGray paint. 464 Paint lightSlateGray = paintFromRGBA(0x77, 0x88, 0x99); 465 466 /// LightSlateGrey paint. 467 Paint lightSlateGrey = paintFromRGBA(0x77, 0x88, 0x99); 468 469 /// LightSteelBlue paint. 470 Paint lightSteelBlue = paintFromRGBA(0xb0, 0xc4, 0xde); 471 472 /// LightYellow paint. 473 Paint lightYellow = paintFromRGBA(0xff, 0xff, 0xe0); 474 475 /// Lime paint. 476 Paint lime = paintFromRGBA(0x00, 0xff, 0x00); 477 478 /// LimeGreen paint. 479 Paint limeGreen = paintFromRGBA(0x32, 0xcd, 0x32); 480 481 /// Linen paint. 482 Paint linen = paintFromRGBA(0xfa, 0xf0, 0xe6); 483 484 /// Magenta paint. 485 Paint magenta = paintFromRGBA(0xff, 0x00, 0xff); 486 487 /// Maroon paint. 488 Paint maroon = paintFromRGBA(0x80, 0x00, 0x00); 489 490 /// MediumAquamarine paint. 491 Paint mediumAquamarine = paintFromRGBA(0x66, 0xcd, 0xaa); 492 493 /// MediumBlue paint. 494 Paint mediumBlue = paintFromRGBA(0x00, 0x00, 0xcd); 495 496 /// MediumOrchid paint. 497 Paint mediumOrchid = paintFromRGBA(0xba, 0x55, 0xd3); 498 499 /// MediumPurple paint. 500 Paint mediumPurple = paintFromRGBA(0x93, 0x70, 0xdb); 501 502 /// MediumSeaGreen paint. 503 Paint mediumSeaGreen = paintFromRGBA(0x3c, 0xb3, 0x71); 504 505 /// MediumSlateBlue paint. 506 Paint mediumSlateBlue = paintFromRGBA(0x7b, 0x68, 0xee); 507 508 /// MediumSpringGreen paint. 509 Paint mediumSpringGreen = paintFromRGBA(0x00, 0xfa, 0x9a); 510 511 /// MediumTurquoise paint. 512 Paint mediumTurquoise = paintFromRGBA(0x48, 0xd1, 0xcc); 513 514 /// MediumVioletRed paint. 515 Paint mediumVioletRed = paintFromRGBA(0xc7, 0x15, 0x85); 516 517 /// MidnightBlue paint. 518 Paint midnightBlue = paintFromRGBA(0x19, 0x19, 0x70); 519 520 /// MintCream paint. 521 Paint mintCream = paintFromRGBA(0xf5, 0xff, 0xfa); 522 523 /// MistyRose paint. 524 Paint mistyRose = paintFromRGBA(0xff, 0xe4, 0xe1); 525 526 /// Moccasin paint. 527 Paint moccasin = paintFromRGBA(0xff, 0xe4, 0xb5); 528 529 /// NavajoWhite paint. 530 Paint navajoWhite = paintFromRGBA(0xff, 0xde, 0xad); 531 532 /// Navy paint. 533 Paint navy = paintFromRGBA(0x00, 0x00, 0x80); 534 535 /// OldLace paint. 536 Paint oldLace = paintFromRGBA(0xfd, 0xf5, 0xe6); 537 538 /// Olive paint. 539 Paint olive = paintFromRGBA(0x80, 0x80, 0x00); 540 541 /// OliveDrab paint. 542 Paint oliveDrab = paintFromRGBA(0x6b, 0x8e, 0x23); 543 544 /// Orange paint. 545 Paint orange = paintFromRGBA(0xff, 0xa5, 0x00); 546 547 /// OrangeRed paint. 548 Paint orangeRed = paintFromRGBA(0xff, 0x45, 0x00); 549 550 /// Orchid paint. 551 Paint orchid = paintFromRGBA(0xda, 0x70, 0xd6); 552 553 /// PaleGoldenrod paint. 554 Paint paleGoldenrod = paintFromRGBA(0xee, 0xe8, 0xaa); 555 556 /// PaleGreen paint. 557 Paint paleGreen = paintFromRGBA(0x98, 0xfb, 0x98); 558 559 /// PaleTurquoise paint. 560 Paint paleTurquoise = paintFromRGBA(0xaf, 0xee, 0xee); 561 562 /// PaleVioletRed paint. 563 Paint paleVioletRed = paintFromRGBA(0xdb, 0x70, 0x93); 564 565 /// PapayaWhip paint. 566 Paint papayaWhip = paintFromRGBA(0xff, 0xef, 0xd5); 567 568 /// PeachPuff paint. 569 Paint peachPuff = paintFromRGBA(0xff, 0xda, 0xb9); 570 571 /// Peru paint. 572 Paint peru = paintFromRGBA(0xcd, 0x85, 0x3f); 573 574 /// Pink paint. 575 Paint pink = paintFromRGBA(0xff, 0xc0, 0xcb); 576 577 /// Plum paint. 578 Paint plum = paintFromRGBA(0xdd, 0xa0, 0xdd); 579 580 /// PowderBlue paint. 581 Paint powderBlue = paintFromRGBA(0xb0, 0xe0, 0xe6); 582 583 /// Purple paint. 584 Paint purple = paintFromRGBA(0x80, 0x00, 0x80); 585 586 /// RosyBrown paint. 587 Paint rosyBrown = paintFromRGBA(0xbc, 0x8f, 0x8f); 588 589 /// RoyalBlue paint. 590 Paint royalBlue = paintFromRGBA(0x41, 0x69, 0xe1); 591 592 /// SaddleBrown paint. 593 Paint saddleBrown = paintFromRGBA(0x8b, 0x45, 0x13); 594 595 /// Salmon paint. 596 Paint salmon = paintFromRGBA(0xfa, 0x80, 0x72); 597 598 /// SandyBrown paint. 599 Paint sandyBrown = paintFromRGBA(0xf4, 0xa4, 0x60); 600 601 /// SeaGreen paint. 602 Paint seaGreen = paintFromRGBA(0x2e, 0x8b, 0x57); 603 604 /// Seashell paint. 605 Paint seashell = paintFromRGBA(0xff, 0xf5, 0xee); 606 607 /// Sienna paint. 608 Paint sienna = paintFromRGBA(0xa0, 0x52, 0x2d); 609 610 /// Silver paint. 611 Paint silver = paintFromRGBA(0xc0, 0xc0, 0xc0); 612 613 /// SkyBlue paint. 614 Paint skyBlue = paintFromRGBA(0x87, 0xce, 0xeb); 615 616 /// SlateBlue paint. 617 Paint slateBlue = paintFromRGBA(0x6a, 0x5a, 0xcd); 618 619 /// SlateGray paint. 620 Paint slateGray = paintFromRGBA(0x70, 0x80, 0x90); 621 622 /// SlateGrey paint. 623 Paint slateGrey = paintFromRGBA(0x70, 0x80, 0x90); 624 625 /// Snow paint. 626 Paint snow = paintFromRGBA(0xff, 0xfa, 0xfa); 627 628 /// SpringGreen paint. 629 Paint springGreen = paintFromRGBA(0x00, 0xff, 0x7f); 630 631 /// SteelBlue paint. 632 Paint steelBlue = paintFromRGBA(0x46, 0x82, 0xb4); 633 634 /// Tan paint. 635 Paint tan = paintFromRGBA(0xd2, 0xb4, 0x8c); 636 637 /// Teal paint. 638 Paint teal = paintFromRGBA(0x00, 0x80, 0x80); 639 640 /// Thistle paint. 641 Paint thistle = paintFromRGBA(0xd8, 0xbf, 0xd8); 642 643 /// Tomato paint. 644 Paint tomato = paintFromRGBA(0xff, 0x63, 0x47); 645 646 /// Turquoise paint. 647 Paint turquoise = paintFromRGBA(0x40, 0xe0, 0xd0); 648 649 /// Violet paint. 650 Paint violet = paintFromRGBA(0xee, 0x82, 0xee); 651 652 /// Wheat paint. 653 Paint wheat = paintFromRGBA(0xf5, 0xde, 0xb3); 654 655 /// WhiteSmoke paint. 656 Paint whiteSmoke = paintFromRGBA(0xf5, 0xf5, 0xf5); 657 658 /// Yellow paint. 659 Paint yellow = paintFromRGBA(0xff, 0xff, 0x00); 660 661 /// YellowGreen paint. 662 Paint yellowGreen = paintFromRGBA(0x9a, 0xcd, 0x32);