1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
//! Color types and constants
//!
//! When setting a color, you can use a variety of different color names.
//! This module contains many of the most common colors that you might want to use. There is an
//! even more comprehensive list in the [`extended`](extended/index.html) module. Any of the color names
//! listed in this module or in the `extended` module can be used as a color. You only need to
//! reference the `color::extended` module if you want to use a specific color constant from that
//! module.
//!
//! You can refer to a color by using its color name as a string literal. For example:
//!
//! ```rust
//! # use turtle::color;
//! # let mut turtle = turtle::Turtle::new();
//! // This will set the turtle's pen color to BLACK
//! turtle.set_pen_color("black");
//! // This is the same as the previous line
//! turtle.set_pen_color(color::BLACK);
//! // You can use any of the supported color names (including the ones from extended)
//! turtle.set_pen_color("deep lilac");
//! ```
//!
//! You can also use hexadecimal color strings to get any color you want
//! (even ones that aren't listed here).
//!
//! ```rust
//! # let mut turtle = turtle::Turtle::new();
//! turtle.set_pen_color("#3366ff");
//! turtle.set_pen_color("#36f");
//! ```
//!
//! Each color's constant name is in uppercase in the list below. The color name you should use to
//! refer to it is in lower case next to the constant.
//!
//! For your convenience, there are two static variables [`COLORS`](static.COLORS.html) and
//! [`COLOR_NAMES`](static.COLOR_NAMES.html) which contain the values of all the color constants
//! and each of their names as strings. These static variables only contain the colors from this
//! module. The [`extended`](extended/index.html) module has its own static `COLOR` and
//! `COLOR_NAMES` variables.
//!
//! # Random Colors
//!
//! You can also generate random colors. Here's an example:
//!
//! ```rust
//! # let mut turtle = turtle::Turtle::new();
//! use turtle::{random, Color};
//! turtle.set_pen_color(random::<Color>().opaque());
//! ```
//!
//! The syntax used in `random::<Color>()` is referred to as
//! ["turbofish" syntax](https://doc.rust-lang.org/book/first-edition/generics.html#resolving-ambiguities).
//! See that documentation for more information.
//!
//! Notice that you need to explicitly call the [`opaque()`](struct.Color.html#method.opaque)
//! method on the color in order to make sure that the color has an alpha value of 1.0. By default,
//! when you generate a random color, it's alpha value will be random as well.
//!
//! See the [examples directory on GitHub](https://github.com/sunjay/turtle/tree/master/examples)
//! for more information.
//!
//! # Creating a Color from Values
//!
//! Usually, you won't need to initialize a color this way since the above methods are quite
//! convenient. However, in some situations it may be necessary to create a color with specific
//! red, green, and blue values. The following example illustrates how to do that.
//!
//! ```rust
//! use turtle::Color;
//! let my_color = Color {red: 255.0, green: 55.0, blue: 11.0, alpha: 1.0};
//! ```
//!
//! Note that when creating a color this way, we **do not** check if the values of each property are
//! within their valid ranges.
//!
//!
//! Another ergonomic syntax can also be used when passing a color to a method that supports any
//! type that implements `Into<Color>`.
//!
//! ```rust
//! # use turtle::*;
//! # let mut turtle = Turtle::new();
//! // A solid color with alpha = 1.0
//! // Syntax is [red, green, blue] and doesn't require explicitly writing the field names
//! turtle.set_pen_color([133.0, 23.0, 96.0]);
//! turtle.set_fill_color([133.0, 23.0, 96.0]);
//! turtle.drawing_mut().set_background_color([133.0, 23.0, 96.0]);
//! // This is a little easier to type than the equivalent:
//! turtle.drawing_mut().set_background_color(Color {red: 133.0, green: 23.0, blue: 96.0, alpha: 1.0});
//!
//! // Add an additional element to the array to specify the alpha
//! // Syntax is [red, green, blue, alpha]
//! turtle.set_pen_color([133.0, 23.0, 96.0, 0.5]);
//! turtle.set_fill_color([133.0, 23.0, 96.0, 0.5]);
//! turtle.drawing_mut().set_background_color([133.0, 23.0, 96.0, 0.5]);
//! // This is a little easier to type than the equivalent:
//! turtle.drawing_mut().set_background_color(Color {red: 133.0, green: 23.0, blue: 96.0, alpha: 0.5});
//! ```
//!
//! When creating a color this way, we **will** check whether or not the color is valid and provide
//! an error message to let you know what happened.
//!
//! ```rust,should_panic
//! # let mut turtle = turtle::Turtle::new();
//! // Color values must only go up to 255.0
//! turtle.set_pen_color([133.0, 256.0, 96.0]); // This will panic with an error message
//! ```
//! There are also constructor methods available for `Color` that allow you to create a new
//! color using provided values. These are:
//!
//! * [`rgb(red, green, blue)`]: Create from the given red, green, and blue values with an alpha value of 1.0
//! * [`rgba(red, green, blue, alpha)`]: Similar to `rgb` but also accepts an alpha value
//! * [`hsl(hue, saturation, lightness)`]: Create from the given hue, saturation, and lightness values with an alpha of 1.0
//! * [`hsla(hue, saturation, lightness, alpha)`]: Similar to `hsl` but also accepts an alpha value
//!
//! These methods provide a concise syntax for creating a new `Color`. If the values passed in are invalid,
//! the program will exit with an error that lets you know what happened. See the documentation for each
//! method (linked above) to see which values are correct for each parameter.
//!
//! ```rust
//! use turtle::Color;
//!
//! // These are equivalent
//! let white_manual = Color { red: 255.0, green: 255.0, blue: 255.0, alpha: 1.0 };
//! let white_rgb = Color::rgb(255.0, 255.0, 255.0);
//! let white_rgba = Color::rgba(255.0, 255.0, 255.0, 1.0);
//! let white_hsl = Color::hsl(0.0, 0.0, 1.0);
//! let white_hsla = Color::hsla(0.0, 0.0, 1.0, 1.0);
//!
//! assert_eq!(white_manual, white_rgb);
//! assert_eq!(white_rgb, white_rgba);
//! assert_eq!(white_rgba, white_hsl);
//! assert_eq!(white_hsl, white_hsla);
//! ```
//!
//! So, you can incorporate these constructors into your turtle code along with
//! other methods of color creation if you like:
//!
//! ```rust
//! # use turtle::*;
//! # let mut turtle = Turtle::new();
//! // Set the pen color to blue
//! turtle.set_pen_color(Color::rgb(0.0, 130.0, 200.0));
//!
//! // And the same color can be set for the fill color via the array syntax.
//! turtle.set_fill_color([0.0, 130.0, 200.0]);
//!
//! // Then, we can set the background to black
//! turtle.drawing_mut().set_background_color("black");
//! ```
//! [`rgb(red, green, blue)`]: ./struct.Color.html#method.rgb
//! [`rgba(red, green, blue, alpha)`]: ./struct.Color.html#method.rgba
//! [`hsl(hue, saturation, lightness)`]: ./struct.Color.html#method.hsl
//! [`hsla(hue, saturation, lightness, alpha)`]: ./struct.Color.html#method.hsla

use std::fmt::Debug;
use std::iter::repeat;
use std::f64::EPSILON;

#[cfg(not(target_arch = "wasm32"))]
use piston_window::types;
use rand::{
    distributions::{Distribution, Standard},
    Rng,
};

/// The maximum allowed value for RGB
const RGB_MAX_VAL: f64 = 255.0;

/// The minimum allowed value for RGB and HSL values
const COLOR_MIN_VALUE: f64 = 0.0;

/// The maximum allowed value for saturation, alpha, or lightness
const SAL_MAX_VAL: f64 = 1.0;

/// The maximum allowed value for hue
const HUE_MAX_VAL: f64 = 360.0;

macro_rules! assert_value_in_range {
    ($name:expr, $value:expr, $min:expr, $max:expr) => {
        assert!(
            $value >= $min && $value <= $max,
            "{} is not a valid value for {}, values must be between {:.1} and {:.1}.",
            $value,
            $name,
            $min,
            $max
        );
    };
}

macro_rules! assert_color_valid {
    ($color:expr) => {
        assert!(
            $color.is_valid(),
            "{:?} is not a valid Color. Please see color module documentation.",
            $color
        );
    };
}

/// Compare f64 values for equality. Floating point numbers are not precise enough to be compared
/// with `==` reliably. This helper function ensures that the two numbers are within EPSILON
/// of each other.
fn f64_eq(left: f64, right: f64) -> bool {
    (left - right).abs() < EPSILON
}

/// Type for representing a color.
///
/// See [the module level documentation](index.html) for more.
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)]
pub struct Color {
    /// Value between 0.0 and 255.0
    pub red: f64,
    /// Value between 0.0 and 255.0
    pub green: f64,
    /// Value between 0.0 and 255.0
    pub blue: f64,
    /// Value between 0.0 and 1.0
    pub alpha: f64,
}

impl Color {
    /// Create a new `Color` from the given [`RGB`] values and alpha set to 1.0.
    /// This provides a more concise way to create `Color` values, instead
    /// of using the manual `Color {...}` style.
    ///
    /// The given values must adhere to those laid out in the documentation
    /// for [`Color`]. Thus:
    ///
    /// * 0.0 &le; `red` &le; 255.0
    /// * 0.0 &le; `green` &le; 255.0
    /// * 0.0 &le; `blue` &le; 255.0
    ///
    /// ```rust
    /// use turtle::Color;
    /// let expected = Color { red: 35.0, green: 200.0, blue: 180.0, alpha: 1.0 };
    /// let actual = Color::rgb(35.0, 200.0, 180.0);
    /// assert_eq!(expected, actual);
    /// ```
    ///
    /// Values that are outside the accepted RGB range will result in a panic
    ///
    /// ```should_panic
    /// use turtle::Color;
    /// // This will not work as 256.0 is greater than the maximum allowed value for blue
    /// let color = Color::rgb(255.0, 255.0, 256.0);
    /// ```
    /// [`Color`]: ./index.html
    /// [`RGB`]: https://developer.mozilla.org/en-US/docs/Glossary/RGB
    pub fn rgb(red: f64, green: f64, blue: f64) -> Self {
        Color::rgba(red, green, blue, 1.0)
    }

    /// Create a new `Color` from the given [`RGB`] values and the provided alpha setting.
    /// This provides a more concise way to create `Color` values instead of using
    /// the manual `Color {...}` style.
    /// The given values must adhere to those laid out in the documentation for [`Color`].
    /// Thus:
    ///
    /// * 0.0 &le; `red` &le; 255.0
    /// * 0.0 &le; `green` &le; 255.0
    /// * 0.0 &le; `blue` &le; 255.0
    /// * 0.0 &le; `alpha` &le; 1.0
    ///
    /// ```rust
    /// use turtle::Color;
    /// let expected = Color { red: 35.0, green: 200.0, blue: 180.0, alpha: 0.5 };
    /// let actual = Color::rgba(35.0, 200.0, 180.0, 0.5);
    /// assert_eq!(expected, actual);
    /// ```
    ///
    /// Values that are outside the accepted RGB or alpha range will result in a panic
    ///
    /// ```should_panic
    /// use turtle::Color;
    /// // This will not work as 1.1 is greater than the maximum allowed value for alpha
    /// let color = Color::rgba(255.0, 255.0, 255.0, 1.1);
    /// ```
    /// [`Color`]: ./index.html
    /// [`RGB`]: https://developer.mozilla.org/en-US/docs/Glossary/RGB
    pub fn rgba(red: f64, green: f64, blue: f64, alpha: f64) -> Self {
        assert_value_in_range!("red", red, COLOR_MIN_VALUE, RGB_MAX_VAL);
        assert_value_in_range!("green", green, COLOR_MIN_VALUE, RGB_MAX_VAL);
        assert_value_in_range!("blue", blue, COLOR_MIN_VALUE, RGB_MAX_VAL);
        assert_value_in_range!("alpha", alpha, COLOR_MIN_VALUE, SAL_MAX_VAL);
        Color { red, green, blue, alpha }
    }

    /// Create a new `Color` from the given [`HSL`] values with alpha set to 1.0.
    ///
    /// The expected value ranges are:
    ///
    /// * 0.0 &le; `hue` &le; 360.0
    /// * 0.0 &le; `saturation` &le; 1.0
    /// * 0.0 &le; `lightness` &le; 1.0
    ///
    /// ```rust
    /// use turtle::Color;
    /// let black: Color = "black".into();
    /// let black_hsl = Color::hsl(0.0, 0.0, 0.0);
    /// assert_eq!(black, black_hsl);
    ///
    /// let white: Color = "white".into();
    /// let white_hsl = Color::hsl(0.0, 1.0, 1.0);
    /// assert_eq!(white, white_hsl);
    ///
    /// let blue: Color = "blue".into();
    /// let blue_hsl = Color::hsl(201.0, 1.0, 0.392);
    /// assert_eq!(blue, blue_hsl);
    /// ```
    /// [`HSL`]: https://en.wikipedia.org/wiki/HSL_and_HSV
    pub fn hsl(hue: f64, saturation: f64, lightness: f64) -> Self {
        Color::hsla(hue, saturation, lightness, 1.0)
    }

    /// Create a new `Color` from the given [`HSL`] values and the given alpha value.
    ///
    /// The expected value ranges are:
    ///
    /// * 0.0 &le; `hue` &le; 360.0
    /// * 0.0 &le; `saturation` &le; 1.0
    /// * 0.0 &le; `lightness` &le; 1.0
    /// * 0.0 &le; `alpha` &le; 1.0
    ///
    /// ```rust
    /// use turtle::{Color, color};
    ///
    /// // You can chain using Color::from()
    /// let black = Color::from("black").with_alpha(0.5);
    /// let black_hsla = Color::hsla(0.0, 0.0, 0.0, 0.5);
    /// assert_eq!(black, black_hsla);
    ///
    /// // But even better, you can use the color enum value and chain the
    /// // calls.
    /// let white = color::WHITE.with_alpha(0.75);
    /// let white_hsla = Color::hsla(0.0, 1.0, 1.0, 0.75);
    /// assert_eq!(white, white_hsla);
    ///
    /// let blue: Color = color::BLUE.with_alpha(0.8);
    /// let blue_hsla = Color::hsla(201.0, 1.0, 0.392, 0.8);
    /// assert_eq!(blue, blue_hsla);
    /// ```
    /// [`HSL`]: https://en.wikipedia.org/wiki/HSL_and_HSV
    pub fn hsla(hue: f64, saturation: f64, lightness: f64, alpha: f64) -> Self {
        assert_value_in_range!("hue", hue, COLOR_MIN_VALUE, HUE_MAX_VAL);
        assert_value_in_range!("saturation", saturation, COLOR_MIN_VALUE, SAL_MAX_VAL);
        assert_value_in_range!("lightness", lightness, COLOR_MIN_VALUE, SAL_MAX_VAL);
        assert_value_in_range!("alpha", alpha, COLOR_MIN_VALUE, SAL_MAX_VAL);

        // Most of this code comes courtesy of work done by 'killercup' on GitHub (MIT Licensed) and
        // the answer here: https://stackoverflow.com/a/9493060
        // Link: https://github.com/killercup/hsl-rs/blob/d3b0ff50091f45bc5cf28a765be1aa52a70461d3/src/lib.rs#L111
        if saturation == 0.0 {
            let achromatic = (lightness * 255.).round();
            return Color::rgba(achromatic, achromatic, achromatic, alpha);
        }

        // Given a hue value, convert it to the percentage of a given RGB color
        // it should be.
        fn hue_to_rgb(p: f64, q: f64, t: f64) -> f64 {
            let t = match t {
                t if t < 0. => t + 1.,
                t if t > 1. => t - 1.,
                _ => t,
            };

            match t {
                t if t < 1. / 6. => p + (q - p) * 6. * t,
                t if t < 1. / 2. => q,
                t if t < 2. / 3. => p + (q - p) * (2. / 3. - t) * 6.,
                _ => p,
            }
        };

        let q = if lightness < 0.5 {
            lightness * (1. + saturation)
        } else {
            lightness + saturation - (lightness * saturation)
        };

        let p = lightness.mul_add(2., -q);
        let h = hue / 360.;

        // Change the percentage value returned from hue_to_rgb to an actual
        // rgb value between 0 and 255
        let red: f64 = (hue_to_rgb(p, q, h + 1. / 3.) * 255.).round();
        let green: f64 = (hue_to_rgb(p, q, h) * 255.).round();
        let blue: f64 = (hue_to_rgb(p, q, h - 1. / 3.) * 255.).round();

        Color::rgba(red, green, blue, alpha)
    }

    /// Returns true if the values for each field are valid.
    ///
    /// The documentation above lists the valid range for each field.
    pub fn is_valid(&self) -> bool {
        self.red >= 0.0
            && self.red <= 255.0
            && self.red.is_finite()
            && self.green >= 0.0
            && self.green <= 255.0
            && self.green.is_finite()
            && self.blue >= 0.0
            && self.blue <= 255.0
            && self.blue.is_finite()
            && self.alpha >= 0.0
            && self.alpha <= 1.0
            && self.alpha.is_finite()
    }

    /// Return a new color with all of the same values except with opacity (alpha) set to 1.0
    ///
    /// ```rust
    /// use turtle::Color;
    /// let color = Color {red: 43.0, green: 79.0, blue: 23.0, alpha: 0.5};
    /// assert_eq!(color.alpha, 0.5);
    /// let color2 = color.opaque();
    /// assert_eq!(color.alpha, 0.5);
    /// assert_eq!(color2.alpha, 1.0);
    /// ```
    pub fn opaque(self) -> Color {
        assert_color_valid!(self);
        self.with_alpha(1.0)
    }

    /// Return a new color with all of the same values except with opacity (alpha) set to 0.0
    ///
    /// ```rust
    /// use turtle::Color;
    /// let color = Color {red: 43.0, green: 79.0, blue: 23.0, alpha: 0.5};
    /// assert_eq!(color.alpha, 0.5);
    /// let color2 = color.transparent();
    /// assert_eq!(color.alpha, 0.5);
    /// assert_eq!(color2.alpha, 0.0);
    /// ```
    pub fn transparent(self) -> Color {
        assert_color_valid!(self);
        self.with_alpha(0.0)
    }

    /// Return a new color with alpha set to the given value
    ///
    /// ```rust
    /// use turtle::Color;
    /// let color = Color {red: 43.0, green: 79.0, blue: 23.0, alpha: 0.5};
    /// assert_eq!(color.alpha, 0.5);
    /// let color2 = color.with_alpha(0.2);
    /// assert_eq!(color.alpha, 0.5);
    /// assert_eq!(color2.alpha, 0.2);
    /// ```
    pub fn with_alpha(mut self, alpha: f64) -> Color {
        self.alpha = alpha;
        self
    }

    /// Mix this color with the other given color, with the given weighting.
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// // Start with red
    /// let red: Color = "red".into();
    ///
    /// // Create a mix that is 60% blue and 40% red
    /// let mixed = red.mix("blue", 0.40);
    /// let expected: Color = [92.0, 88.0, 150.0, 1.0].into();
    ///
    /// assert_eq!(mixed, expected);
    /// ```
    ///
    /// The `weight` parameter is a value between 0.0 and 1.0. It determines the percentage to mix
    /// `self` with `other`. So let's say that in the example above, we had used
    /// `red.mix("blue", 0.5)`. 0.5 means 50%, so we would mix 50% red and 50% blue. The colors
    /// would be mixed evenly. If we had instead done `red.mix("blue", 0.25)`, the weight would be
    /// 0.25 which is 25%. That means that we would get a mix of 25% red and 75% blue.
    ///
    /// The alpha channel of both colors are also combined in the same way.
    ///
    /// # Panics
    ///
    /// Passing a value for `weight` that is not between 0.0 and 1.0 will result in a `panic`
    ///
    /// ```should_panic
    /// use turtle::{Color, color};
    ///
    /// let orange: Color = "orange".into();
    ///
    /// // This will panic as 1.01 is not a valid value for weight, which must be between 0.0 and 1.0.
    /// let mixed = orange.mix(color::BROWN.with_alpha(0.8), 1.01);
    /// ```
    ///
    /// # Example
    ///
    /// Let's look at a more complete example to really show what happens when we're mixing colors together.
    ///
    /// ```no_run
    /// extern crate turtle;
    ///
    /// use turtle::{Color, Turtle};
    ///
    /// fn main() {
    ///     let mut turtle = Turtle::new();
    ///     turtle.drawing_mut().set_title("Mixing colors!");
    ///     turtle.set_pen_size(5.0);
    ///
    ///     let red: Color = "red".into();
    ///
    ///     // This will draw a red line
    ///     turtle.set_pen_color(red);
    ///     turtle.forward(100.0);
    ///     turtle.right(90.0);
    ///
    ///     // This will draw a purple line because we have equally mixed red with blue
    ///     turtle.set_pen_color(red.mix("blue", 0.5));
    ///     turtle.forward(100.0);
    ///     turtle.right(90.0);
    ///
    ///     // This will draw a line that is 25% red and 75% blue (a red-ish dark blue color)
    ///     turtle.set_pen_color(red.mix("blue", 0.25));
    ///     turtle.forward(100.0);
    ///     turtle.right(90.0);
    ///
    ///     // This will draw a line that is 75% red and 25% blue (medium red violet)
    ///     turtle.set_pen_color(red.mix("blue", 0.75));
    ///     turtle.forward(100.0);
    ///     turtle.right(90.0);
    /// }
    /// ```
    ///
    /// Running the above program will result in the following image:
    /// ![turtle color mixing](https://github.com/sunjay/turtle/raw/9240f8890d1032a0033ec5c5338a10ffa942dc21/docs/assets/images/docs/color_mixing.png)
    pub fn mix<C: Into<Color> + Copy + Debug>(self, other: C, weight: f64) -> Self {
        assert_value_in_range!("weight", weight, 0.0, 1.0);

        // This algorithm (and the explanation) cribbed from Sass
        // (http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method)

        // It factors in the user-provided weight (w) and the difference between the alpha values of the colors (a) to decide
        // how to perform the weighted average of the two RGB colors.
        // It works by first normalizing both parameters to be within [-1, 1],
        // where 1 indicates "only use color1", -1 indicates "only use color2", and
        // all values in between indicated a proportionately weighted average.
        //
        // Once we have the normalized variables w and a, we apply the formula
        // (w + a)/(1 + w*a) to get the combined weight (in [-1, 1]) of color1.
        // This formula has two especially nice properties:
        //
        //   * When either w or a are -1 or 1, the combined weight is also that number
        //     (cases where w * a == -1 are undefined, and handled as a special case).
        //
        //   * When a is 0, the combined weight is w, and vice versa.
        //
        // Finally, the weight of color1 is renormalized to be within [0, 1]
        // and the weight of color2 is given by 1 minus the weight of color1.
        let with_color = other.into();
        assert_color_valid!(self);
        assert_color_valid!(with_color);

        let p = weight;
        let w = p.mul_add(2., -1.);
        let a = self.alpha - with_color.alpha;

        let w1 = if f64_eq(w * a, -1.0) {
            (w + 1.) / 2.
        } else {
            ((w + a) / a.mul_add(w, 1.) + 1.) / 2.
        };

        let w2 = 1. - w1;

        let r_mod = self.red.mul_add(w1, with_color.red * w2).round();
        let g_mod = self.green.mul_add(w1, with_color.green * w2).round();
        let b_mod = self.blue.mul_add(w1, with_color.blue * w2).round();
        let a_mod = self.alpha.mul_add(p, with_color.alpha * (1. - p));
        Color::rgba(r_mod, g_mod, b_mod, a_mod)
    }

    /// Retrieve the hue for this `Color`. The returned value is in degrees
    /// between 0° and 360° that represents its position on the color wheel.
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// let c: Color = "blue".into();
    /// assert_eq!(201.0, c.hue());
    /// ```
    pub fn hue(self) -> f64 {
        self.to_hsl().0
    }

    /// Retrieve the saturation value for this `Color`. The returned value is
    /// between 0.0 and 1.0 (inclusive) that indicates the saturation percentage.
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// let c: Color = "blue".into();
    /// assert_eq!(1.0, c.saturation());
    /// ```
    pub fn saturation(self) -> f64 {
        self.to_hsl().1
    }

    /// Retrieve the lightness value for this `Color`. The returned value is between
    /// 0.0 and 1.0 (inclusive) that indicates the lightness percentage.
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// let c: Color = "blue".into();
    /// assert_eq!(0.39215686274509803, c.lightness());
    /// ```
    pub fn lightness(self) -> f64 {
        self.to_hsl().2
    }

    /// Changes the hue of a color. Takes a color and a number of degrees
    /// (usually between -360° and 360°), and returns a color with the hue
    /// rotated along the color wheel by that amount.
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// // Positive values
    /// let c = Color::hsl(120., 0.3, 0.9);
    /// assert_eq!(c.rotate_hue(60.), Color::hsl(180.0, 0.3, 0.9));
    ///
    /// // Negative values
    /// assert_eq!(c.rotate_hue(-60.), Color::hsl(60.0, 0.3, 0.9));
    /// ```
    ///
    /// Passing hue values outside the range of -360 and 360 will result in a `panic`.
    ///
    /// So, passing a value that is too small:
    ///
    /// ```should_panic
    /// use turtle::Color;
    ///
    /// let red: Color = "red".into();
    ///
    /// // This will panic, as -361 is outside the allowed range
    /// let improper = red.rotate_hue(-361.0);
    /// ```
    ///
    /// Or one that is too large:
    ///
    /// ```should_panic
    /// use turtle::Color;
    ///
    /// let blue: Color = "blue".into();
    ///
    /// // This will panic as 361 is outside the allowed range
    /// let improper = blue.rotate_hue(361.0);
    /// ```
    pub fn rotate_hue(self, hue: f64) -> Self {
        assert_value_in_range!("hue", hue, -360., 360.);

        let (h, s, l) = self.to_hsl();
        // Normalize the hue to within -360 and +360
        let mut hue_mod = (h + hue) % 360.;
        if hue_mod < 0. {
            hue_mod += 360.;
        }

        Color::hsla(hue_mod, s, l, self.alpha)
    }

    /// Create a new `Color` by increasing the lightness of this `Color` by
    /// the given percentage. The value is a float between 0.0 and 1.0
    /// indicating the percentage to increase the lightness. So, if you wish
    /// to make a `Color` 10% lighter, you would specify 0.1.
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(158.0, 0.8, 0.3);
    ///
    /// // Now, let's increase the lightness of original by 50%
    /// let lighter = original.lighten(0.5);
    /// assert_eq!(lighter, Color::hsl(158.0, 0.8, 0.8));
    /// ```
    ///
    /// Now, as the maximum lightness a `Color` can have is 100%, trying
    /// to increase it beyond that point will result in a `Color` with
    /// a lightness value of 1.0
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(200.0, 0.7, 0.8);
    ///
    /// // Now, we'll increase the lightness by 50%, which would go beyond 100%
    /// let lighter = original.lighten(0.5);
    ///
    /// // But, the lightness of the color will still max out at 1.0
    /// assert_eq!(lighter, Color::hsl(200.0, 0.7, 1.0));
    /// ```
    ///
    /// Providing values greater than 1.0 will result in a panic
    ///
    /// ```should_panic
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(150.0, 0.5, 0.3);
    ///
    /// // This will panic as a value of 1.1 is greater than the acceptable
    /// // maximum of 1.0
    /// let incorrect = original.lighten(1.1);
    /// ```
    ///
    /// Negative values will also result in a panic
    ///
    /// ```should_panic
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(150.0, 0.5, 0.8);
    ///
    /// // This will panic, as a negative value is less than the acceptable
    /// // minimum of 0.0
    /// let incorrect = original.lighten(-0.3);
    /// ```
    ///
    /// If you want to lighten by a negative amount, please see [`darken`].
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(25.0, 1.0, 0.8);
    ///
    /// // Instead of -0.3 (-30%) as in the previous example, we will just darken by 30%
    /// let darker = original.darken(0.3);
    /// assert_eq!(darker, Color::hsl(25.0, 1.0, 0.5));
    /// ```
    /// [`darken`]: ./struct.Color.html#method.darken
    pub fn lighten(self, lighter: f64) -> Self {
        assert_value_in_range!("lighter", lighter, 0., 1.);

        let (h, s, l) = self.to_hsl();

        let l_mod = if l + lighter <= 1. { l + lighter } else { 1. };

        Color::hsla(h, s, l_mod, self.alpha)
    }

    /// Create a new `Color` by decreasing the lightness of this `Color` by
    /// the given percentage. The value is a float between 0.0 and 1.0
    /// indicating the percentage to decrease the lightness. So, if you wish
    /// to make a `Color` 10% darker, you would specify 0.1.
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(25.0, 1.0, 0.8);
    ///
    /// // Let's make the color 30% darker.
    /// let darker = original.darken(0.3);
    /// assert_eq!(darker, Color::hsl(25.0, 1.0, 0.5));
    /// ```
    ///
    /// As the minimum lightness a `Color` can have is 0%, attempting to
    /// decrease beyond that will result in a `Color` with a lightness of 0.
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(100.0, 1.0, 0.3);
    ///
    /// // Let's try to decrease by 40%, which would result in a negative lightness
    /// let darker = original.darken(0.4);
    ///
    /// // Since we can't go below 0%, the lightness of the resulting `Color` will be 0
    /// assert_eq!(darker, Color::hsl(100.0, 1.0, 0.0));
    /// ```
    ///
    /// Providing values greater than 1.0 will result in a panic
    ///
    /// ```should_panic
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(150.0, 0.3, 0.5);
    ///
    /// // This will panic as 1.1 is greater than the acceptable maximum of 1.0
    /// let incorrect = original.darken(1.1);
    /// ```
    ///
    /// Negative values will also result in a panic
    ///
    /// ```should_panic
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(150.0, 0.3, 0.5);
    ///
    /// // This will panic as a negative value is less than the acceptable
    /// // minimum of 0.0
    /// let incorrect = original.darken(-0.1);
    /// ```
    ///
    /// If you want to darken by a negative value please see [`lighten`].
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(158.0, 0.8, 0.3);
    ///
    /// // Now, we'll increase the lightness by 10%, instead of trying to darken by
    /// // a negative amount
    /// let lighter = original.lighten(0.1);
    /// assert_eq!(lighter, Color::hsl(158.0, 0.8, 0.4));
    /// ```
    /// [`lighten`]: ./struct.Color.html#method.lighten
    pub fn darken(self, darker: f64) -> Self {
        assert_value_in_range!("darker", darker, 0., 1.);

        let (h, s, l) = self.to_hsl();

        let l_mod = if l - darker >= 0. { l - darker } else { 0. };
        Color::hsla(h, s, l_mod, self.alpha)
    }

    /// Create a new `Color` by increasing the saturation level of this
    /// `Color` by the given percentage. The value is a float between
    /// 0.0 and 1.0 indicating the percentage to increase the saturation.
    /// So, if you wish to create a `Color` that is 30% more saturated than
    /// this one, you would specify 0.3.
    ///
    /// For more information on what saturation is in relation to HSL colors,
    /// please see this [Wikipedia Article].
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(120.0, 0.3, 0.9);
    ///
    /// // Now, let's increase the saturation by 20%
    /// let saturated = original.saturate(0.2);
    /// assert_eq!(saturated, Color::hsl(120.0, 0.5, 0.9));
    /// ```
    ///
    /// The maximum saturation level a `Color` can have is 100%. If you try
    /// to increase beyond that level using this method, it will result in a
    /// `Color` with a `saturation` value of 1.0.
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(120.0, 0.8, 0.9);
    ///
    /// // We try to increase the saturation by 50%, which would equal 130%
    /// let saturated = original.saturate(0.5);
    ///
    /// // But the resulting color only has a saturation value of 1.0
    /// assert_eq!(saturated, Color::hsl(120.0, 1.0, 0.9));
    /// ```
    ///
    /// Passing values that are greater than 1.0 will result in a panic
    ///
    /// ```should_panic
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(120.0, 0.5, 0.9);
    ///
    /// // This will panic, as 1.1 is greater than the maximum accepted value of 1.0
    /// let incorrect = original.saturate(1.1);
    /// ```
    ///
    /// Negative values will also result in a panic
    ///
    /// ```should_panic
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(120.0, 0.5, 0.9);
    ///
    /// // This will panic, as a negative value is less than the minimum acceptable
    /// // value of 0.0
    /// let incorrect = original.saturate(-0.2);
    /// ```
    ///
    /// If you wish to desaturate a `Color` please see [`desaturate`].
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(120.0, 0.3, 0.9);
    ///
    /// // Instead of trying to saturate with a negative value as in the
    /// // previous example, we simply desaturate by the same positive amount
    /// let desaturated = original.desaturate(0.2);
    /// assert_eq!(desaturated, Color::hsl(120.0, 0.1, 0.9));
    /// ```
    /// [Wikipedia Article]: https://en.wikipedia.org/wiki/HSL_and_HSV#Saturation
    /// [`desaturate`]: ./struct.Color.html#method.desaturate
    pub fn saturate(self, saturation: f64) -> Self {
        assert_value_in_range!("saturation", saturation, 0., 1.);

        let (h, s, l) = self.to_hsl();
        let s_mod = if s + saturation <= 1. { s + saturation } else { 1. };
        Color::hsla(h, s_mod, l, self.alpha)
    }

    /// Create a new `Color` by decreasing the saturation level of this `Color`
    /// by the given percentage. The value is a float between
    /// 0.0 and 1.0 indicating the percentage to decrease the saturation.
    /// So, if you wish to create a `Color` that is 30% less saturated than
    /// this one, you would specify 0.3.
    ///
    /// For more information on what saturation is in relation to HSL colors,
    /// please see this [Wikipedia Article].
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(120.0, 0.3, 0.9);
    ///
    /// // Now, desaturate the original by 20%
    /// let desaturated = original.desaturate(0.2);
    /// assert_eq!(desaturated, Color::hsl(120.0, 0.1, 0.9));
    /// ```
    ///
    /// Since the minimum saturation value a color can have is 0%, attempting
    /// to desaturate beyond that level will simply result in a `Color` with a
    /// `saturation` value of 0.
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(120.0, 0.3, 0.9);
    ///
    /// // Now, desaturate the color by 50%, which would equal -20%
    /// let desaturated = original.desaturate(0.5);
    ///
    /// // However the resulting color simply has a saturation of 0.0
    /// assert_eq!(desaturated, Color::hsl(120.0, 0.0, 0.9));
    /// ```
    ///
    /// A color with a saturation level of 0.0 is known
    /// as an '[achromatic]' color. As they have no hue, they are the range
    /// of all gray colors, ranging from white to black.
    ///
    /// Passing values that are greater than 1.0 will result in a panic
    ///
    /// ```should_panic
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(120.0, 0.3, 0.9);
    ///
    /// // This will panic, as 1.1 is greater than the acceptable maximum of 1.0
    /// let incorrect = original.desaturate(1.1);
    /// ```
    ///
    /// Passing negative values will also panic
    ///
    /// ```should_panic
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(120.0, 0.3, 0.7);
    ///
    /// // This will panic, as a negative value is less than the acceptable
    /// // minimum value of 0.0
    /// let incorrect = original.desaturate(-0.2);
    /// ```
    ///
    /// If you wish to saturate a `Color`, please see [`saturate`]
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// let original = Color::hsl(120.0, 0.3, 0.9);
    ///
    /// // Now, let's increase the saturation by 20% instead of trying to
    /// // desaturate by a negative number
    /// let saturated = original.saturate(0.2);
    /// assert_eq!(saturated, Color::hsl(120.0, 0.5, 0.9));
    /// ```
    /// [Wikipedia Article]: https://en.wikipedia.org/wiki/HSL_and_HSV#Saturation
    /// [achromatic]: https://en.wikipedia.org/wiki/Color_scheme#Achromatic_colors
    /// [`saturate`]: ./struct.Color.html#method.saturate
    pub fn desaturate(self, saturation: f64) -> Self {
        assert_value_in_range!("saturation", saturation, 0., 1.);

        let (h, s, l) = self.to_hsl();
        let s_mod = if s - saturation >= 0. { s - saturation } else { 0. };
        Color::hsla(h, s_mod, l, self.alpha)
    }

    /// Convert this `Color` to grayscale, which is essentailly desaturating
    /// it by 100%. For more information on desaturation please see [`desaturate`].
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// // Let's start with a standard HSL color
    /// let original = Color::hsl(0.0, 0.5, 0.5);
    ///
    /// // Now, when we switch this to grayscale, we will end up with Turtle 'grey'
    /// assert_eq!(original.grayscale(), "grey".into());
    /// ```
    ///
    /// A `Color` that has no saturation is known as an '[achromatic]' `Color`, which
    /// are gray colors ranging from white to black.
    ///
    /// Since this is essentally removing all saturation you can verify that
    /// the grayscale version of any `Color` is the same `hue` and `lightness` values
    /// with 0 `saturation`.
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// // An arbitrary HSL color
    /// let original = Color::hsl(200.0, 0.9, 1.0);
    ///
    /// // The grayscale version simply has a saturation of 0
    /// assert_eq!(original.grayscale(), Color::hsl(200.0, 0.0, 1.0));
    /// ```
    /// [`desaturate`]: ./struct.Color.html#method.desaturate
    /// [achromatic]: https://en.wikipedia.org/wiki/Color_scheme#Achromatic_colors
    pub fn grayscale(self) -> Self {
        self.desaturate(1.0)
    }

    /// Create a new `Color` by obtaining the complement (opposite) of this `Color`.
    /// The complement of a color is 180 degrees around the color wheel. For more
    /// information on rotating the hue of a `Color` please see [`rotate_hue`].
    ///
    /// This [Wikipedia Article] contains more information about complementary colors.
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// // A standard HSL color
    /// let original = Color::hsl(100.0, 0.7, 1.0);
    ///
    /// // The complement will be have a hue value that is 180 degrees greater
    /// assert_eq!(original.complement(), Color::hsl(280.0, 0.7, 1.0));
    /// ```
    /// [`rotate_hue`]: ./struct.Color.html#method.rotate_hue
    /// [Wikipedia Article]: https://en.wikipedia.org/wiki/Complementary_colors
    pub fn complement(self) -> Self {
        self.rotate_hue(180.)
    }

    /// Create a `Color` that is the inverse (negative) of this
    /// `Color`. The `red`, `green`, and `blue` values of this
    /// color are inverted but `alpha` is not touched.
    ///
    /// For more information about what the inverse of a `Color`
    /// is, please see this [StackExchange Answer].
    ///
    /// This `Color` is mixed with the inverted values to produce
    /// the inverse of it. The mix is done with a weight of 1.0 for
    /// the invert values. For more information see [`mix`].
    ///
    /// ```rust
    /// use turtle::Color;
    ///
    /// // We will start with blue. Turtle blue is rgb(0, 130, 200)
    /// let blue: Color = "blue".into();
    ///
    /// // The inverse of blue is a light orange color. Note that the
    /// // original color had a default alpha value of 1.0, so we can
    /// // make sure the resulting color also has the same alpha value
    /// assert_eq!(blue.invert(), [255.0, 125.0, 55.0, 1.0].into());
    /// ```
    /// [`mix`]: ./struct.Color.html#method.mix
    /// [StackExchange Answer]: https://graphicdesign.stackexchange.com/a/95100
    pub fn invert(self) -> Self {
        assert_color_valid!(self);

        let inv_r = 255. - self.red;
        let inv_g = 255. - self.green;
        let inv_b = 255. - self.blue;

        let inv_color = Color::rgba(inv_r, inv_g, inv_b, self.alpha);
        inv_color.mix(self, 1.0)
    }

    /// Helper to switch a given RGB `Color` to HSL values.
    ///
    /// Answer adapted from this SO answer (https://stackoverflow.com/a/9493060)
    /// and more information about the underlying algorithm can be found on
    /// https://en.wikipedia.org/wiki/HSL_and_HSV
    fn to_hsl(&self) -> (f64, f64, f64) {
        /* Check that the color is valid here, this covers the following methods:
         *  - saturate
         *  - desaturate
         *  - grayscale
         *  - darken
         *  - lighten
         *  - rotate_hue
         *  - hue
         *  - saturation
         *  - lightness
         *  - complement
         */
        assert_color_valid!(self);
        let div_color = |c| c / 255.0;
        let (r, g, b) = (div_color(self.red), div_color(self.green), div_color(self.blue));

        let max = r.max(g.max(b));
        let min = r.min(g.min(b));
        let hue: f64;
        let saturation: f64;
        let lightness = (max + min) * 0.5;

        if f64_eq(max, min) {
            hue = 0.;
            saturation = 0.;
        } else {
            let d = max - min;
            saturation = if lightness > 0.5 { d / (2. - max - min) } else { d / (max + min) };

            hue = match max {
                _ if f64_eq(max, r) => (g - b) / d + if g < b { 6. } else { 0. },
                _ if f64_eq(max, g) => (b - r) / d + 2.,
                _ => (r - g) / d + 4.,
            } * 60.;
        }

        (hue.round(), saturation, lightness)
    }
}

impl Distribution<Color> for Standard {
    fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Color {
        let red = rng.gen::<f64>() * 255.;
        let green = rng.gen::<f64>() * 255.;
        let blue = rng.gen::<f64>() * 255.;
        let alpha = rng.gen::<f64>();

        Color::rgba(red, green, blue, alpha)
    }
}

// Docs are hidden because this is an implementation detail
#[doc(hidden)]
#[cfg(not(target_arch = "wasm32"))]
impl From<Color> for types::Color {
    fn from(color: Color) -> Self {
        [
            color.red as f32 / 255.0,
            color.green as f32 / 255.0,
            color.blue as f32 / 255.0,
            color.alpha as f32,
        ]
    }
}

impl From<[f64; 3]> for Color {
    fn from(color_values: [f64; 3]) -> Self {
        Self::rgb(color_values[0], color_values[1], color_values[2])
    }
}

impl From<[f64; 4]> for Color {
    fn from(color_values: [f64; 4]) -> Self {
        Self::rgba(color_values[0], color_values[1], color_values[2], color_values[3])
    }
}

impl<'a> From<&'a str> for Color {
    fn from(s: &'a str) -> Self {
        if s.starts_with('#') {
            let color_str = &s[1..];
            // Color strings can either be of size 3 (rgb) or 6 (rrggbb)
            // e.g. 3366ff == 36f
            let color_str = match color_str.len() {
                3 => color_str.chars().flat_map(|c| repeat(c).take(2)).collect(),
                6 => color_str.to_owned(),
                _ => panic!("Invalid color literal: {}", s),
            };

            // Use closure here as 's' cannot be captured when using nested fn form
            let extract_color_value = |v| i64::from_str_radix(v, 16)
                .unwrap_or_else(|_| panic!("Invalid color literal: {}", s)) as f64;

            let red = extract_color_value(&color_str[0..2]);
            let green = extract_color_value(&color_str[2..4]);
            let blue = extract_color_value(&color_str[4..6]);

            Self::rgb(red, green, blue)
        } else {
            from_color_name(s)
                .or_else(|| extended::from_color_name(s))
                .unwrap_or_else(|| panic!("Unknown color name: {}", s))
        }
    }
}

macro_rules! color_consts {
    ($($name:expr, $id:ident, ($r:expr, $g:expr, $b:expr, $a:expr);)*) => {
        $(
            #[doc = $name]
            pub const $id: Color = Color {red: $r, green: $g, blue: $b, alpha: $a};
        )*

        /// A list of all of the colors
        pub static COLORS: &[Color] = &[$($id, )*];
        /// A list of all of the color names
        pub static COLOR_NAMES: &[&str] = &[$($name, )*];

        pub(crate) fn from_color_name(s: &str) -> Option<Color> {
            match s {
                $(
                    $name => Some($id),
                )*
                _ => None,
            }
        }
    }
}

// Most important colors are put in the main module, the remaining are in extended.
// We do this so that documentation doesn't get overloaded with constants.
color_consts! {
    "transparent", TRANSPARENT, (0.0, 0.0, 0.0, 0.0);
    "red", RED,	(230.0, 25.0, 75.0, 1.0);
    "green", GREEN,	(60.0, 180.0, 75.0, 1.0);
    "yellow", YELLOW,	(255.0, 225.0, 25.0, 1.0);
    "blue", BLUE,	(0.0, 130.0, 200.0, 1.0);
    "orange", ORANGE,	(245.0, 130.0, 48.0, 1.0);
    "purple", PURPLE,	(145.0, 30.0, 180.0, 1.0);
    "cyan", CYAN,	(70.0, 240.0, 240.0, 1.0);
    "magenta", MAGENTA,	(240.0, 50.0, 230.0, 1.0);
    "lime", LIME,	(210.0, 245.0, 60.0, 1.0);
    "pink", PINK,	(250.0, 190.0, 190.0, 1.0);
    "teal", TEAL,	(0.0, 128.0, 128.0, 1.0);
    "lavender", LAVENDER,	(230.0, 190.0, 255.0, 1.0);
    "brown", BROWN,	(170.0, 110.0, 40.0, 1.0);
    "beige", BEIGE,	(255.0, 250.0, 200.0, 1.0);
    "maroon", MAROON,	(128.0, 0.0, 0.0, 1.0);
    "mint", MINT,	(170.0, 255.0, 195.0, 1.0);
    "olive", OLIVE,	(128.0, 128.0, 0.0, 1.0);
    "coral", CORAL,	(255.0, 215.0, 180.0, 1.0);
    "navy", NAVY,	(0.0, 0.0, 128.0, 1.0);
    "grey", GREY,	(128.0, 128.0, 128.0, 1.0);
    "white", WHITE,	(255.0, 255.0, 255.0, 1.0);
    "black", BLACK,	(0.0, 0.0, 0.0, 1.0);
}

#[cfg(test)]
mod tests {
    use super::*;

    use std::f64::{EPSILON, INFINITY as INF, NAN};

    #[test]
    fn color_equivalence() {
        let c = Color {
            red: 51.0,
            green: 85.0,
            blue: 255.0,
            alpha: 1.0,
        };
        let c1: Color = "#35f".into();
        let c2: Color = "#3355ff".into();
        let c3: Color = "#35F".into();
        let c4: Color = "#3355FF".into();
        assert_eq!(c, c1);
        assert_eq!(c1, c2);
        assert_eq!(c2, c3);
        assert_eq!(c3, c4);
    }

    #[test]
    fn fields_mapped_correctly() {
        // Check if array syntax maps color values to the correct fields
        let c: Color = [2.4, 3.2, 4.6, 0.67].into();
        assert_eq!(
            c,
            Color {
                red: 2.4,
                green: 3.2,
                blue: 4.6,
                alpha: 0.67
            }
        );

        let c: Color = [2.4, 3.2, 4.6].into();
        assert_eq!(
            c,
            Color {
                red: 2.4,
                green: 3.2,
                blue: 4.6,
                alpha: 1.0
            }
        );
    }

    #[test]
    #[should_panic(expected = "Invalid color literal: #fffff")]
    fn invalid_color1() {
        // Wrong number of digits
        Color::from("#fffff");
    }

    #[test]
    #[should_panic(expected = "Invalid color literal: #www")]
    fn invalid_color2() {
        // Invalid hex character
        Color::from("#www");
    }

    #[test]
    fn valid_colors() {
        // Test that all colors in their valid ranges are valid
        // Floating-point numbers have infinite ranges, so this is not an exhaustive test
        for i in 0..(255 * 2 + 1) {
            let i = i as f64 / 2.0;

            let color = Color {
                red: i,
                green: 0.0,
                blue: 0.0,
                alpha: 0.0,
            };
            assert!(color.is_valid(), "{:?}", color);
            let color = Color {
                red: 0.0,
                green: i,
                blue: 0.0,
                alpha: 0.0,
            };
            assert!(color.is_valid(), "{:?}", color);
            let color = Color {
                red: 0.0,
                green: 0.0,
                blue: i,
                alpha: 0.0,
            };
            assert!(color.is_valid(), "{:?}", color);
            let color = Color {
                red: 0.0,
                green: 0.0,
                blue: 0.0,
                alpha: i / 255.0,
            };
            assert!(color.is_valid(), "{:?}", color);

            let color = Color {
                red: 255.0 - i,
                green: i,
                blue: 255.0 - i,
                alpha: i / 255.0,
            };
            assert!(color.is_valid(), "{:?}", color);
        }
    }

    #[test]
    fn invalid_color3() {
        assert!(
            !Color {
                red: NAN,
                green: 0.0,
                blue: 0.0,
                alpha: 0.0
            }.is_valid()
        );
        assert!(
            !Color {
                red: 0.0,
                green: NAN,
                blue: 0.0,
                alpha: 0.0
            }.is_valid()
        );
        assert!(
            !Color {
                red: 0.0,
                green: 0.0,
                blue: NAN,
                alpha: 0.0
            }.is_valid()
        );
        assert!(
            !Color {
                red: 0.0,
                green: 0.0,
                blue: 0.0,
                alpha: NAN
            }.is_valid()
        );
        assert!(
            !Color {
                red: NAN,
                green: NAN,
                blue: NAN,
                alpha: NAN
            }.is_valid()
        );

        assert!(
            !Color {
                red: INF,
                green: 0.0,
                blue: 0.0,
                alpha: 0.0
            }.is_valid()
        );
        assert!(
            !Color {
                red: 0.0,
                green: INF,
                blue: 0.0,
                alpha: 0.0
            }.is_valid()
        );
        assert!(
            !Color {
                red: 0.0,
                green: 0.0,
                blue: INF,
                alpha: 0.0
            }.is_valid()
        );
        assert!(
            !Color {
                red: 0.0,
                green: 0.0,
                blue: 0.0,
                alpha: INF
            }.is_valid()
        );
        assert!(
            !Color {
                red: INF,
                green: INF,
                blue: INF,
                alpha: INF
            }.is_valid()
        );

        assert!(
            !Color {
                red: -INF,
                green: 0.0,
                blue: 0.0,
                alpha: 0.0
            }.is_valid()
        );
        assert!(
            !Color {
                red: 0.0,
                green: -INF,
                blue: 0.0,
                alpha: 0.0
            }.is_valid()
        );
        assert!(
            !Color {
                red: 0.0,
                green: 0.0,
                blue: -INF,
                alpha: 0.0
            }.is_valid()
        );
        assert!(
            !Color {
                red: 0.0,
                green: 0.0,
                blue: 0.0,
                alpha: -INF
            }.is_valid()
        );
        assert!(
            !Color {
                red: -INF,
                green: -INF,
                blue: -INF,
                alpha: -INF
            }.is_valid()
        );

        // Out of valid range
        assert!(
            !Color {
                red: -EPSILON,
                green: 0.0,
                blue: 0.0,
                alpha: 0.0
            }.is_valid()
        );
        assert!(
            !Color {
                red: 0.0,
                green: -EPSILON,
                blue: 0.0,
                alpha: 0.0
            }.is_valid()
        );
        assert!(
            !Color {
                red: 0.0,
                green: 0.0,
                blue: -EPSILON,
                alpha: 0.0
            }.is_valid()
        );
        assert!(
            !Color {
                red: 0.0,
                green: 0.0,
                blue: 0.0,
                alpha: -EPSILON
            }.is_valid()
        );
        assert!(
            !Color {
                red: -EPSILON,
                green: -EPSILON,
                blue: -EPSILON,
                alpha: -EPSILON
            }.is_valid()
        );

        assert!(
            !Color {
                red: 255.0001,
                green: 0.0,
                blue: 0.0,
                alpha: 0.0
            }.is_valid()
        );
        assert!(
            !Color {
                red: 0.0,
                green: 255.0001,
                blue: 0.0,
                alpha: 0.0
            }.is_valid()
        );
        assert!(
            !Color {
                red: 0.0,
                green: 0.0,
                blue: 255.0001,
                alpha: 0.0
            }.is_valid()
        );
        assert!(
            !Color {
                red: 0.0,
                green: 0.0,
                blue: 0.0,
                alpha: 1.0001
            }.is_valid()
        );
        assert!(
            !Color {
                red: 255.0001,
                green: 255.0001,
                blue: 255.0001,
                alpha: 1.0001
            }.is_valid()
        );
    }

    #[test]
    fn ensure_value_mapping() {
        let expected = Color {
            red: 65.,
            green: 122.,
            blue: 200.,
            alpha: 1.,
        };
        let actual_rgb = Color::rgb(65., 122., 200.);
        let actual_rgba = Color::rgba(65., 122., 200., 1.);
        assert_eq!(expected, actual_rgb);
        assert_eq!(expected, actual_rgba);
    }

    #[test]
    fn ensure_achromatic_hsl() {
        let expected = Color {
            red: 26.,
            green: 26.,
            blue: 26.,
            alpha: 1.,
        };
        let actual = Color::hsl(180., 0., 0.1);
        assert_eq!(expected, actual);
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for red, values must be between 0.0 and 255.0")]
    fn ensure_rgb_invalid_red_negative_panic() {
        Color::rgb(-0.0000001, 20., 20.);
    }

    #[test]
    #[should_panic(expected = "255.0000001 is not a valid value for red, values must be between 0.0 and 255.0")]
    fn ensure_rgb_invalid_red_positive_panic() {
        Color::rgb(255.0000001, 20., 20.);
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for green, values must be between 0.0 and 255.0")]
    fn ensure_rgb_invalid_green_negative_panic() {
        Color::rgb(20., -0.0000001, 20.);
    }

    #[test]
    #[should_panic(expected = "255.0000001 is not a valid value for green, values must be between 0.0 and 255.0")]
    fn ensure_rgb_invalid_green_positive_panic() {
        Color::rgb(20., 255.0000001, 20.);
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for blue, values must be between 0.0 and 255.0")]
    fn ensure_rgb_invalid_blue_negative_panic() {
        Color::rgb(20., 20., -0.0000001);
    }

    #[test]
    #[should_panic(expected = "255.0000001 is not a valid value for blue, values must be between 0.0 and 255.0")]
    fn ensure_rgb_invalid_blue_positive_panic() {
        Color::rgb(20., 20., 255.0000001);
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for red, values must be between 0.0 and 255.0")]
    fn ensure_rgba_invalid_red_negative_panic() {
        Color::rgba(-0.0000001, 20., 20., 1.);
    }

    #[test]
    #[should_panic(expected = "255.0000001 is not a valid value for red, values must be between 0.0 and 255.0")]
    fn ensure_rgba_invalid_red_positive_panic() {
        Color::rgba(255.0000001, 20., 20., 1.);
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for green, values must be between 0.0 and 255.0")]
    fn ensure_rgba_invalid_green_negative_panic() {
        Color::rgba(20., -0.0000001, 20., 1.);
    }

    #[test]
    #[should_panic(expected = "255.0000001 is not a valid value for green, values must be between 0.0 and 255.0")]
    fn ensure_rgba_invalid_green_positive_panic() {
        Color::rgba(20., 255.0000001, 20., 1.);
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for blue, values must be between 0.0 and 255.0")]
    fn ensure_rgba_invalid_blue_negative_panic() {
        Color::rgba(20., 20., -0.0000001, 1.);
    }

    #[test]
    #[should_panic(expected = "255.0000001 is not a valid value for blue, values must be between 0.0 and 255.0")]
    fn ensure_rgba_invalid_blue_positive_panic() {
        Color::rgba(20., 20., 255.0000001, 1.);
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for alpha, values must be between 0.0 and 1.0")]
    fn ensure_rgba_invalid_alpha_negative_panic() {
        Color::rgba(20., 20., 20., -0.0000001);
    }

    #[test]
    #[should_panic(expected = "1.0000001 is not a valid value for alpha, values must be between 0.0 and 1.0")]
    fn ensure_rgba_invalid_alpha_positive_panic() {
        Color::rgba(20., 20., 20., 1.0000001);
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for hue, values must be between 0.0 and 360.0")]
    fn ensure_hsl_invalid_hue_negative_panic() {
        Color::hsl(-0.0000001, 1., 1.);
    }

    #[test]
    #[should_panic(expected = "360.0000001 is not a valid value for hue, values must be between 0.0 and 360.0")]
    fn ensure_hsl_invalid_hue_positive_panic() {
        Color::hsl(360.0000001, 1., 1.);
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for saturation, values must be between 0.0 and 1.0")]
    fn ensure_hsl_invalid_saturation_negative_panic() {
        Color::hsl(20., -0.0000001, 1.);
    }

    #[test]
    #[should_panic(expected = "1.0000001 is not a valid value for saturation, values must be between 0.0 and 1.0")]
    fn ensure_hsl_invalid_saturation_positive_panic() {
        Color::hsl(20., 1.0000001, 1.);
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for lightness, values must be between 0.0 and 1.0")]
    fn ensure_hsl_invalid_lightness_negative_panic() {
        Color::hsl(20., 1., -0.0000001);
    }

    #[test]
    #[should_panic(expected = "1.0000001 is not a valid value for lightness, values must be between 0.0 and 1.0")]
    fn ensure_hsl_invalid_lightness_positive_panic() {
        Color::hsl(20., 1., 1.0000001);
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for hue, values must be between 0.0 and 360.0")]
    fn ensure_hsla_invalid_hue_negative_panic() {
        Color::hsla(-0.0000001, 1., 1., 1.);
    }

    #[test]
    #[should_panic(expected = "360.0000001 is not a valid value for hue, values must be between 0.0 and 360.0")]
    fn ensure_hsla_invalid_hue_positive_panic() {
        Color::hsla(360.0000001, 1., 1., 1.);
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for saturation, values must be between 0.0 and 1.0")]
    fn ensure_hsla_invalid_saturation_negative_panic() {
        Color::hsla(20., -0.0000001, 1., 1.);
    }

    #[test]
    #[should_panic(expected = "1.0000001 is not a valid value for saturation, values must be between 0.0 and 1.0")]
    fn ensure_hsla_invalid_saturation_positive_panic() {
        Color::hsla(20., 1.0000001, 1., 1.);
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for lightness, values must be between 0.0 and 1.0")]
    fn ensure_hsla_invalid_lightness_negative_panic() {
        Color::hsla(20., 1., -0.0000001, 1.);
    }

    #[test]
    #[should_panic(expected = "1.0000001 is not a valid value for lightness, values must be between 0.0 and 1.0")]
    fn ensure_hsla_invalid_lightness_positive_panic() {
        Color::hsla(20., 1., 1.0000001, 1.);
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for alpha, values must be between 0.0 and 1.0")]
    fn ensure_hsla_invalid_alpha_negative_panic() {
        Color::hsla(20., 1., 1., -0.0000001);
    }

    #[test]
    #[should_panic(expected = "1.0000001 is not a valid value for alpha, values must be between 0.0 and 1.0")]
    fn ensure_hsla_invalid_alpha_positive_panic() {
        Color::hsla(20., 1., 1., 1.0000001);
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for red, values must be between 0.0 and 255.0")]
    fn ensure_rgb_arr_invalid_red_negative_panic() {
        let _: Color = [-0.0000001, 20., 20.].into();
    }

    #[test]
    #[should_panic(expected = "255.0000001 is not a valid value for red, values must be between 0.0 and 255.0")]
    fn ensure_rgb_arr_invalid_red_positive_panic() {
        let _: Color = [255.0000001, 20., 20.].into();
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for green, values must be between 0.0 and 255.0")]
    fn ensure_rgb_arr_invalid_green_negative_panic() {
        let _: Color = [20., -0.0000001, 20.].into();
    }

    #[test]
    #[should_panic(expected = "255.0000001 is not a valid value for green, values must be between 0.0 and 255.0")]
    fn ensure_rgb_arr_invalid_green_positive_panic() {
        let _: Color = [20., 255.0000001, 20.].into();
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for blue, values must be between 0.0 and 255.0")]
    fn ensure_rgb_arr_invalid_blue_negative_panic() {
        let _: Color = [20., 20., -0.0000001].into();
    }

    #[test]
    #[should_panic(expected = "255.0000001 is not a valid value for blue, values must be between 0.0 and 255.0")]
    fn ensure_rgb_arr_invalid_blue_positive_panic() {
        let _: Color = [20., 20., 255.0000001].into();
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for red, values must be between 0.0 and 255.0")]
    fn ensure_rgba_arr_invalid_red_negative_panic() {
        let _: Color = [-0.0000001, 20., 20., 1.].into();
    }

    #[test]
    #[should_panic(expected = "255.0000001 is not a valid value for red, values must be between 0.0 and 255.0")]
    fn ensure_rgba_arr_invalid_red_positive_panic() {
        let _: Color = [255.0000001, 20., 20., 1.].into();
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for green, values must be between 0.0 and 255.0")]
    fn ensure_rgba_arr_invalid_green_negative_panic() {
        let _: Color = [20., -0.0000001, 20., 1.].into();
    }

    #[test]
    #[should_panic(expected = "255.0000001 is not a valid value for green, values must be between 0.0 and 255.0")]
    fn ensure_rgba_arr_invalid_green_positive_panic() {
        let _: Color = [20., 255.0000001, 20., 1.].into();
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for blue, values must be between 0.0 and 255.0")]
    fn ensure_rgba_arr_invalid_blue_negative_panic() {
        let _: Color = [20., 20., -0.0000001, 1.].into();
    }

    #[test]
    #[should_panic(expected = "255.0000001 is not a valid value for blue, values must be between 0.0 and 255.0")]
    fn ensure_rgba_arr_invalid_blue_positive_panic() {
        let _: Color = [20., 20., 255.0000001, 1.].into();
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for alpha, values must be between 0.0 and 1.0")]
    fn ensure_rgba_arr_invalid_alpha_negative_panic() {
        let _: Color = [20., 20., 20., -0.0000001].into();
    }

    #[test]
    #[should_panic(expected = "1.0000001 is not a valid value for alpha, values must be between 0.0 and 1.0")]
    fn ensure_rgba_arr_invalid_alpha_positive_panic() {
        let _: Color = [20., 20., 20., 1.0000001].into();
    }

    #[test]
    #[should_panic(expected = "-360.0000001 is not a valid value for hue, values must be between -360.0 and 360.0.")]
    fn ensure_rotate_hue_invalid_negative_panic() {
        let c: Color = "blue".into();
        let _ = c.rotate_hue(-360.0000001);
    }

    #[test]
    #[should_panic(expected = "360.0000001 is not a valid value for hue, values must be between -360.0 and 360.0.")]
    fn ensure_rotate_hue_invalid_positive_panic() {
        let c: Color = "blue".into();
        let _ = c.rotate_hue(360.0000001);
    }

    #[test]
    #[should_panic(
        expected = "Color { red: 256.0, green: 1.0, blue: 1.0, alpha: 1.0 } is not a valid Color. Please see color module documentation."
    )]
    fn ensure_mix_invalid_color_panic() {
        let c: Color = "green".into();
        let invalid_color = Color {
            red: 256.,
            green: 1.,
            blue: 1.,
            alpha: 1.,
        };
        let _ = c.mix(invalid_color, 0.50);
    }

    #[test]
    #[should_panic(expected = "1.0000001 is not a valid value for weight, values must be between 0.0 and 1.0.")]
    fn ensure_mix_invalid_weight_panic() {
        let o: Color = "orange".into();
        let r: Color = "red".into();
        let _ = o.mix(r, 1.0000001);
    }

    #[test]
    #[should_panic(expected = "-0.0000001 is not a valid value for weight, values must be between 0.0 and 1.0.")]
    fn ensure_mix_negative_weight_panic() {
        let o: Color = "orange".into();
        let r: Color = "red".into();
        let _ = o.mix(r, -0.0000001);
    }

    #[test]
    fn check_rgb_values() {
        rgb_mapping_values()
            .iter()
            .for_each(|&(expected, (r, g, b))| assert_eq!(Color::from(expected), Color::rgb(r, g, b)));
    }

    #[test]
    fn check_rgba_values() {
        rgb_mapping_values()
            .iter()
            .for_each(|&(expected, (r, g, b))| assert_eq!(Color::from(expected), Color::rgba(r, g, b, 1.0)));
    }

    #[test]
    fn check_hsl_values() {
        hsl_mapping_values()
            .iter()
            .for_each(|&((r, g, b), (h, s, l))| assert_eq!(Color::rgb(r, g, b), Color::hsl(h, s, l)));
    }

    #[test]
    fn check_hsla_values() {
        hsl_mapping_values()
            .iter()
            .for_each(|&((r, g, b), (h, s, l))| assert_eq!(Color::rgba(r, g, b, 1.0), Color::hsla(h, s, l, 1.0)));
    }

    /// Some mappings from color name to rgb values to pass through the rgb(a) constructor methods
    fn rgb_mapping_values() -> Vec<(&'static str, (f64, f64, f64))> {
        vec![
            ("red", (230.0, 25.0, 75.0)),
            ("green", (60.0, 180.0, 75.0)),
            ("yellow", (255.0, 225.0, 25.0)),
            ("blue", (0.0, 130.0, 200.0)),
            ("orange", (245.0, 130.0, 48.0)),
            ("purple", (145.0, 30.0, 180.0)),
            ("cyan", (70.0, 240.0, 240.0)),
            ("magenta", (240.0, 50.0, 230.0)),
            ("lime", (210.0, 245.0, 60.0)),
            ("pink", (250.0, 190.0, 190.0)),
            ("teal", (0.0, 128.0, 128.0)),
            ("lavender", (230.0, 190.0, 255.0)),
            ("brown", (170.0, 110.0, 40.0)),
            ("beige", (255.0, 250.0, 200.0)),
            ("maroon", (128.0, 0.0, 0.0)),
            ("mint", (170.0, 255.0, 195.0)),
            ("olive", (128.0, 128.0, 0.0)),
            ("coral", (255.0, 215.0, 180.0)),
            ("navy", (0.0, 0.0, 128.0)),
            ("grey", (128.0, 128.0, 128.0)),
            ("white", (255.0, 255.0, 255.0)),
            ("black", (0.0, 0.0, 0.0)),
        ]
    }

    /// Some mappings from rgb values to hsl to pass into the hsl(a) constructor methods.
    /// N.B. There is some wiggle for HSL -> RGB on some values, so these colors end up not being
    /// exact as if rgb values were given.
    ///
    /// This can be seen by going to
    /// https://www.rapidtables.com/convert/color/rgb-to-hsl.html and entering (for rgb)
    /// 230, 25, 75 (turtle Red) and getting the HSL (345, 80.4, 50.0) then going to
    /// https://www.rapidtables.com/convert/color/hsl-to-rgb.html and entering (for hsl)
    /// 345, 80.4, 50.0 and noting that the returned RGB is (230, 25, 76)
    fn hsl_mapping_values() -> Vec<((f64, f64, f64), (f64, f64, f64))> {
        // All hsl colors converted by hand at https://www.rapidtables.com/convert/color/rgb-to-hsl.html
        vec![
            ((230.0, 25.0, 76.0), (345.0, 0.804, 0.5)),
            ((60.0, 180.0, 76.0), (128.0, 0.5, 0.471)),
            ((255.0, 224.0, 25.0), (52.0, 1.0, 0.549)),
            ((0.0, 130.0, 200.0), (201.0, 1.0, 0.392)),
            ((245.0, 130.0, 48.0), (25.0, 0.908, 0.575)),
            ((145.0, 30.0, 180.0), (286.0, 0.714, 0.412)),
            ((70.0, 240.0, 240.0), (180.0, 0.85, 0.608)),
            ((240.0, 50.0, 231.0), (303.0, 0.864, 0.569)),
            ((211.0, 245.0, 60.0), (71.0, 0.902, 0.598)),
            ((250.0, 190.0, 190.0), (0.0, 0.857, 0.863)),
            ((0.0, 128.0, 128.0), (180.0, 1.0, 0.251)),
            ((230.0, 190.0, 255.0), (277.0, 1.0, 0.873)),
            ((170.0, 109.0, 40.0), (32.0, 0.619, 0.412)),
            ((255.0, 250.0, 200.0), (55.0, 1.0, 0.892)),
            ((128.0, 0.0, 0.0), (0.0, 1.0, 0.251)),
            ((170.0, 255.0, 195.0), (138.0, 1.0, 0.833)),
            ((128.0, 128.0, 0.0), (60.0, 1.0, 0.251)),
            ((255.0, 215.0, 180.0), (28.0, 1.0, 0.853)),
            ((0.0, 0.0, 128.0), (240.0, 1.0, 0.251)),
            ((128.0, 128.0, 128.0), (0.0, 0.0, 0.502)),
            ((255.0, 255.0, 255.0), (0.0, 0.0, 1.0)),
            ((0.0, 0.0, 0.0), (0.0, 0.0, 0.0)),
        ]
    }

    #[test]
    fn ensure_color_mix() {
        let mix_1 = Color::rgba(18., 55., 125., 1.0);
        let mix_2 = Color::rgba(125., 33., 200., 0.8);
        let expected = Color::rgba(72., 44., 163., 0.88);
        let mix_res = mix_1.mix(mix_2, 0.40);
        assert_eq!(expected, mix_res);
    }

    #[test]
    fn check_rgb_to_hsl() {
        let c = Color::rgb(251., 206., 33.);
        let result = c.to_hsl();

        assert_eq!((48., 0.9646017699115044, 0.5568627450980392), result);
    }

    #[test]
    fn check_hsl_getters() {
        let c = Color::hsl(345.0, 0.804, 0.5);
        // Check hue
        assert_eq!(345., c.hue());
        // Check saturation, rounded to account floats
        assert_eq!(804., (c.saturation() * 1000.).round());
        // Check lightness
        assert_eq!(500., (c.lightness() * 1000.).round());
    }

    #[test]
    fn check_rotate_hue_positive() {
        let c = Color::hsl(25.0, 0.908, 0.575);
        assert_eq!(c.rotate_hue(70.), Color::hsl(95., 0.908, 0.575));
    }

    #[test]
    fn check_rotate_hue_negative() {
        let c = Color::hsl(25.0, 0.908, 0.575);
        assert_eq!(c.rotate_hue(-10.), Color::hsl(15., 0.908, 0.575));
    }

    #[test]
    fn check_rotate_hue_wrap_positive() {
        let c = Color::hsl(350., 0.5, 0.75);
        assert_eq!(c.rotate_hue(50.), Color::hsl(40., 0.5, 0.75));
    }

    #[test]
    fn check_rotate_hue_wrap_negative() {
        let c = Color::hsl(10., 0.8, 0.9);
        assert_eq!(c.rotate_hue(-50.), Color::hsl(320., 0.8, 0.9));
    }

    #[test]
    fn check_rotate_hue_keeps_alpha() {
        let c = Color::hsla(25.0, 0.908, 0.575, 0.3);
        assert_eq!(c.rotate_hue(70.), Color::hsla(95., 0.908, 0.575, 0.3));
    }

    #[test]
    fn check_lighten_positive() {
        let c = Color::hsl(200., 0.8, 0.4);
        assert_eq!(c.lighten(0.2), Color::hsl(200., 0.8, 0.6));
    }

    #[test]
    fn check_lighten_stops_at_max() {
        let c = Color::hsl(300., 0.5, 0.8);
        assert_eq!(c.lighten(0.5), Color::hsl(300., 0.5, 1.0));
    }

    #[test]
    fn check_lighten_keeps_alpha() {
        let c = Color::hsla(200., 1.0, 0.4, 0.3);
        assert_eq!(c.lighten(0.4), Color::hsla(200., 1.0, 0.8, 0.3));
    }

    #[test]
    #[should_panic(expected = "1.1 is not a valid value for lighter, values must be between 0.0 and 1.0")]
    fn ensure_lighten_invalid_positive_panic() {
        let c = Color::hsl(150., 0.4, 0.2);
        let _ = c.lighten(1.1);
    }

    #[test]
    #[should_panic(expected = "-0.1 is not a valid value for lighter, values must be between 0.0 and 1.0")]
    fn ensure_lighten_invalid_negative_panic() {
        let c = Color::hsl(150., 0.4, 0.2);
        let _ = c.lighten(-0.1);
    }

    #[test]
    fn check_darken_positive() {
        let c = Color::hsl(50., 1.0, 0.8);
        assert_eq!(c.darken(0.2), Color::hsl(50., 1.0, 0.6));
    }

    #[test]
    fn check_darken_stops_at_min() {
        let c = Color::hsl(80., 0.9, 0.4);
        assert_eq!(c.darken(0.6), Color::hsl(80., 0.9, 0.0));
    }

    #[test]
    fn check_darken_keeps_alpha() {
        let c = Color::hsla(50., 1.0, 0.8, 0.4);
        assert_eq!(c.darken(0.2), Color::hsla(50., 1.0, 0.6, 0.4));
    }

    #[test]
    #[should_panic(expected = "1.1 is not a valid value for darker, values must be between 0.0 and 1.0")]
    fn ensure_darken_invalid_positive_panic() {
        let c = Color::hsl(150., 0.4, 0.2);
        let _ = c.darken(1.1);
    }

    #[test]
    #[should_panic(expected = "-0.1 is not a valid value for darker, values must be between 0.0 and 1.0")]
    fn ensure_darken_invalid_negative_panic() {
        let c = Color::hsl(150., 0.4, 0.2);
        let _ = c.darken(-0.1);
    }

    #[test]
    fn check_saturate_positive() {
        let c = Color::hsl(210., 0.3, 0.9);
        assert_eq!(c.saturate(0.2), Color::hsl(210., 0.5, 0.9));
    }

    #[test]
    fn check_saturate_stops_at_max() {
        let c = Color::hsl(120., 0.3, 0.9);
        assert_eq!(c.saturate(0.9), Color::hsl(120., 1.0, 0.9));
    }

    #[test]
    fn check_saturate_keeps_alpha() {
        let c = Color::hsla(120., 0.3, 0.9, 0.4);
        assert_eq!(c.saturate(0.2), Color::hsla(120., 0.5, 0.9, 0.4));
    }

    #[test]
    #[should_panic(expected = "1.1 is not a valid value for saturation, values must be between 0.0 and 1.0")]
    fn ensure_saturation_invalid_positive_panic() {
        let c = Color::hsl(210., 0.5, 0.9);
        let _ = c.saturate(1.1);
    }

    #[test]
    #[should_panic(expected = "-0.1 is not a valid value for saturation, values must be between 0.0 and 1.0")]
    fn ensure_saturation_invalid_negative_panic() {
        let c = Color::hsl(210., 0.5, 0.9);
        let _ = c.saturate(-0.1);
    }

    #[test]
    fn check_desaturate_positive() {
        let c = Color::hsl(210., 0.3, 0.9);
        assert_eq!(c.desaturate(0.2), Color::hsl(210., 0.1, 0.9));
    }

    #[test]
    fn check_desaturate_stops_at_max() {
        let c = Color::hsl(120., 0.3, 0.9);
        assert_eq!(c.desaturate(0.9), Color::hsl(120., 0.0, 0.9));
    }

    #[test]
    fn check_desaturate_keeps_alpha() {
        let c = Color::hsla(120., 0.3, 0.9, 0.4);
        assert_eq!(c.desaturate(0.2), Color::hsla(120., 0.1, 0.9, 0.4));
    }

    #[test]
    #[should_panic(expected = "1.1 is not a valid value for saturation, values must be between 0.0 and 1.0")]
    fn ensure_desaturate_invalid_positive_panic() {
        let c = Color::hsl(210., 0.5, 0.9);
        let _ = c.desaturate(1.1);
    }

    #[test]
    #[should_panic(expected = "-0.1 is not a valid value for saturation, values must be between 0.0 and 1.0")]
    fn ensure_desaturate_invalid_negative_panic() {
        let c = Color::hsl(210., 0.5, 0.9);
        let _ = c.desaturate(-0.1);
    }

    #[test]
    fn check_grayscale() {
        let c = Color::hsl(180., 0.9, 0.5);
        assert_eq!(c.grayscale(), Color::hsl(180., 0.0, 0.5));
    }

    #[test]
    fn check_grayscale_keeps_alpha() {
        let c = Color::hsla(200., 0.5, 0.5, 0.3);
        assert_eq!(c.grayscale(), Color::hsla(200., 0.0, 0.5, 0.3));
    }

    #[test]
    #[should_panic(
        expected = "Color { red: 255.0, green: 256.0, blue: 255.0, alpha: 1.0 } is not a valid Color. Please see color module documentation."
    )]
    fn ensure_grayscale_invalid_color_panics() {
        let c = Color {
            red: 255.,
            green: 256.,
            blue: 255.,
            alpha: 1.0,
        };
        let _ = c.grayscale();
    }

    #[test]
    fn check_complement() {
        let c = Color::hsl(100., 0.5, 0.5);
        assert_eq!(c.complement(), Color::hsl(280., 0.5, 0.5));
    }

    #[test]
    fn check_complement_wraps() {
        let c = Color::hsl(300., 0.5, 0.5);
        assert_eq!(c.complement(), Color::hsl(120., 0.5, 0.5));
    }

    #[test]
    fn check_complement_keeps_alpha() {
        let c = Color::hsla(80., 0.5, 0.5, 0.4);
        assert_eq!(c.complement(), Color::hsla(260., 0.5, 0.5, 0.4))
    }

    #[test]
    #[should_panic(
        expected = "Color { red: 255.0, green: 256.0, blue: 255.0, alpha: 1.0 } is not a valid Color. Please see color module documentation."
    )]
    fn ensure_complement_invalid_color_panics() {
        let c = Color {
            red: 255.,
            green: 256.,
            blue: 255.,
            alpha: 1.0,
        };
        let _ = c.complement();
    }

    #[test]
    fn check_invert() {
        let c: Color = "red".into();
        assert_eq!(c.invert(), [25., 230., 180.].into());
    }

    #[test]
    fn check_invert_keeps_alpha() {
        let c: Color = [100., 250., 175., 0.2].into();
        assert_eq!(c.invert(), [155., 5., 80., 0.2].into());
    }

    #[test]
    #[should_panic(
        expected = "Color { red: 255.0, green: 256.0, blue: 255.0, alpha: 1.0 } is not a valid Color. Please see color module documentation."
    )]
    fn ensure_invert_invalid_color_panics() {
        let c = Color {
            red: 255.,
            green: 256.,
            blue: 255.,
            alpha: 1.0,
        };
        let _ = c.invert();
    }

    #[test]
    #[should_panic(
        expected = "Color { red: 255.0, green: 256.0, blue: 255.0, alpha: 1.0 } is not a valid Color. Please see color module documentation."
    )]
    fn ensure_hue_invalid_color_panics() {
        let c = Color {
            red: 255.,
            green: 256.,
            blue: 255.,
            alpha: 1.0,
        };
        let _ = c.hue();
    }

    #[test]
    #[should_panic(
        expected = "Color { red: 255.0, green: 256.0, blue: 255.0, alpha: 1.0 } is not a valid Color. Please see color module documentation."
    )]
    fn ensure_saturation_invalid_color_panics() {
        let c = Color {
            red: 255.,
            green: 256.,
            blue: 255.,
            alpha: 1.0,
        };
        let _ = c.saturation();
    }

    #[test]
    #[should_panic(
        expected = "Color { red: 255.0, green: 256.0, blue: 255.0, alpha: 1.0 } is not a valid Color. Please see color module documentation."
    )]
    fn ensure_lightness_invalid_color_panics() {
        let c = Color {
            red: 255.,
            green: 256.,
            blue: 255.,
            alpha: 1.0,
        };
        let _ = c.lightness();
    }

    #[test]
    #[should_panic(
        expected = "Color { red: 255.0, green: 256.0, blue: 255.0, alpha: 1.0 } is not a valid Color. Please see color module documentation."
    )]
    fn ensure_saturate_invalid_color_panics() {
        let c = Color {
            red: 255.,
            green: 256.,
            blue: 255.,
            alpha: 1.0,
        };
        let _ = c.saturate(0.5);
    }

    #[test]
    #[should_panic(
        expected = "Color { red: 255.0, green: 256.0, blue: 255.0, alpha: 1.0 } is not a valid Color. Please see color module documentation."
    )]
    fn ensure_desaturate_invalid_color_panics() {
        let c = Color {
            red: 255.,
            green: 256.,
            blue: 255.,
            alpha: 1.0,
        };
        let _ = c.desaturate(0.5);
    }

    #[test]
    #[should_panic(
        expected = "Color { red: 255.0, green: 256.0, blue: 255.0, alpha: 1.0 } is not a valid Color. Please see color module documentation."
    )]
    fn ensure_darken_invalid_color_panics() {
        let c = Color {
            red: 255.,
            green: 256.,
            blue: 255.,
            alpha: 1.0,
        };
        let _ = c.darken(0.5);
    }

    #[test]
    #[should_panic(
        expected = "Color { red: 255.0, green: 256.0, blue: 255.0, alpha: 1.0 } is not a valid Color. Please see color module documentation."
    )]
    fn ensure_lighten_invalid_color_panics() {
        let c = Color {
            red: 255.,
            green: 256.,
            blue: 255.,
            alpha: 1.0,
        };
        let _ = c.lighten(0.5);
    }

    #[test]
    #[should_panic(
        expected = "Color { red: 255.0, green: 256.0, blue: 255.0, alpha: 1.0 } is not a valid Color. Please see color module documentation."
    )]
    fn ensure_rotate_hue_invalid_color_panics() {
        let c = Color {
            red: 255.,
            green: 256.,
            blue: 255.,
            alpha: 1.0,
        };
        let _ = c.rotate_hue(20.);
    }
}

pub mod extended {
    //! Even more colors!!
    //!
    //! This extended list of colors is from: <https://xkcd.com/color/rgb/>
    //!
    //! Each color's constant name is in uppercase in the list below. The color name you should use to
    //! refer to it is in lower case next to the constant.
    //!
    //! For your convenience, there are two static variables [`COLORS`](static.COLORS.html) and
    //! [`COLOR_NAMES`](static.COLOR_NAMES.html) which contain the values of all the color constants
    //! and each of their names as strings. These static variables only contain the colors from this
    //! module.
    use super::Color;

    color_consts! {
        "grey", GREY, (146.0, 149.0, 145.0, 1.0);
        "sky blue", SKY_BLUE, (117.0, 187.0, 253.0, 1.0);
        "yellow", YELLOW, (255.0, 255.0, 20.0, 1.0);
        "magenta", MAGENTA, (194.0, 0.0, 120.0, 1.0);
        "light green", LIGHT_GREEN, (150.0, 249.0, 123.0, 1.0);
        "orange", ORANGE, (249.0, 115.0, 6.0, 1.0);
        "teal", TEAL, (2.0, 147.0, 134.0, 1.0);
        "light blue", LIGHT_BLUE, (149.0, 208.0, 252.0, 1.0);
        "red", RED, (229.0, 0.0, 0.0, 1.0);
        "brown", BROWN, (101.0, 55.0, 0.0, 1.0);
        "pink", PINK, (255.0, 129.0, 192.0, 1.0);
        "blue", BLUE, (3.0, 67.0, 223.0, 1.0);
        "green", GREEN, (21.0, 176.0, 26.0, 1.0);
        "purple", PURPLE, (126.0, 30.0, 156.0, 1.0);

        "cloudy blue", CLOUDY_BLUE, (172.0, 194.0, 217.0, 1.0);
        "dark pastel green", DARK_PASTEL_GREEN, (86.0, 174.0, 87.0, 1.0);
        "dust", DUST, (178.0, 153.0, 110.0, 1.0);
        "electric lime", ELECTRIC_LIME, (168.0, 255.0, 4.0, 1.0);
        "fresh green", FRESH_GREEN, (105.0, 216.0, 79.0, 1.0);
        "light eggplant", LIGHT_EGGPLANT, (137.0, 69.0, 133.0, 1.0);
        "nasty green", NASTY_GREEN, (112.0, 178.0, 63.0, 1.0);
        "really light blue", REALLY_LIGHT_BLUE, (212.0, 255.0, 255.0, 1.0);
        "tea", TEA, (101.0, 171.0, 124.0, 1.0);
        "warm purple", WARM_PURPLE, (149.0, 46.0, 143.0, 1.0);
        "yellowish tan", YELLOWISH_TAN, (252.0, 252.0, 129.0, 1.0);
        "cement", CEMENT, (165.0, 163.0, 145.0, 1.0);
        "dark grass green", DARK_GRASS_GREEN, (56.0, 128.0, 4.0, 1.0);
        "dusty teal", DUSTY_TEAL, (76.0, 144.0, 133.0, 1.0);
        "grey teal", GREY_TEAL, (94.0, 155.0, 138.0, 1.0);
        "macaroni and cheese", MACARONI_AND_CHEESE, (239.0, 180.0, 53.0, 1.0);
        "pinkish tan", PINKISH_TAN, (217.0, 155.0, 130.0, 1.0);
        "spruce", SPRUCE, (10.0, 95.0, 56.0, 1.0);
        "strong blue", STRONG_BLUE, (12.0, 6.0, 247.0, 1.0);
        "toxic green", TOXIC_GREEN, (97.0, 222.0, 42.0, 1.0);
        "windows blue", WINDOWS_BLUE, (55.0, 120.0, 191.0, 1.0);
        "blue blue", BLUE_BLUE, (34.0, 66.0, 199.0, 1.0);
        "blue with a hint of purple", BLUE_WITH_A_HINT_OF_PURPLE, (83.0, 60.0, 198.0, 1.0);
        "booger", BOOGER, (155.0, 181.0, 60.0, 1.0);
        "bright sea green", BRIGHT_SEA_GREEN, (5.0, 255.0, 166.0, 1.0);
        "dark green blue", DARK_GREEN_BLUE, (31.0, 99.0, 87.0, 1.0);
        "deep turquoise", DEEP_TURQUOISE, (1.0, 115.0, 116.0, 1.0);
        "green teal", GREEN_TEAL, (12.0, 181.0, 119.0, 1.0);
        "strong pink", STRONG_PINK, (255.0, 7.0, 137.0, 1.0);
        "bland", BLAND, (175.0, 168.0, 139.0, 1.0);
        "deep aqua", DEEP_AQUA, (8.0, 120.0, 127.0, 1.0);
        "lavender pink", LAVENDER_PINK, (221.0, 133.0, 215.0, 1.0);
        "light moss green", LIGHT_MOSS_GREEN, (166.0, 200.0, 117.0, 1.0);
        "light seafoam green", LIGHT_SEAFOAM_GREEN, (167.0, 255.0, 181.0, 1.0);
        "olive yellow", OLIVE_YELLOW, (194.0, 183.0, 9.0, 1.0);
        "pig pink", PIG_PINK, (231.0, 142.0, 165.0, 1.0);
        "deep lilac", DEEP_LILAC, (150.0, 110.0, 189.0, 1.0);
        "desert", DESERT, (204.0, 173.0, 96.0, 1.0);
        "dusty lavender", DUSTY_LAVENDER, (172.0, 134.0, 168.0, 1.0);
        "purpley grey", PURPLEY_GREY, (148.0, 126.0, 148.0, 1.0);
        "purply", PURPLY, (152.0, 63.0, 178.0, 1.0);
        "candy pink", CANDY_PINK, (255.0, 99.0, 233.0, 1.0);
        "light pastel green", LIGHT_PASTEL_GREEN, (178.0, 251.0, 165.0, 1.0);
        "boring green", BORING_GREEN, (99.0, 179.0, 101.0, 1.0);
        "kiwi green", KIWI_GREEN, (142.0, 229.0, 63.0, 1.0);
        "light grey green", LIGHT_GREY_GREEN, (183.0, 225.0, 161.0, 1.0);
        "orange pink", ORANGE_PINK, (255.0, 111.0, 82.0, 1.0);
        "tea green", TEA_GREEN, (189.0, 248.0, 163.0, 1.0);
        "very light brown", VERY_LIGHT_BROWN, (211.0, 182.0, 131.0, 1.0);
        "egg shell", EGG_SHELL, (255.0, 252.0, 196.0, 1.0);
        "eggplant purple", EGGPLANT_PURPLE, (67.0, 5.0, 65.0, 1.0);
        "powder pink", POWDER_PINK, (255.0, 178.0, 208.0, 1.0);
        "reddish grey", REDDISH_GREY, (153.0, 117.0, 112.0, 1.0);
        "baby shit brown", BABY_SHIT_BROWN, (173.0, 144.0, 13.0, 1.0);
        "liliac", LILIAC, (196.0, 142.0, 253.0, 1.0);
        "stormy blue", STORMY_BLUE, (80.0, 123.0, 156.0, 1.0);
        "ugly brown", UGLY_BROWN, (125.0, 113.0, 3.0, 1.0);
        "custard", CUSTARD, (255.0, 253.0, 120.0, 1.0);
        "darkish pink", DARKISH_PINK, (218.0, 70.0, 125.0, 1.0);
        "deep brown", DEEP_BROWN, (65.0, 2.0, 0.0, 1.0);
        "greenish beige", GREENISH_BEIGE, (201.0, 209.0, 121.0, 1.0);
        "manilla", MANILLA, (255.0, 250.0, 134.0, 1.0);
        "off blue", OFF_BLUE, (86.0, 132.0, 174.0, 1.0);
        "battleship grey", BATTLESHIP_GREY, (107.0, 124.0, 133.0, 1.0);
        "browny green", BROWNY_GREEN, (111.0, 108.0, 10.0, 1.0);
        "bruise", BRUISE, (126.0, 64.0, 113.0, 1.0);
        "kelley green", KELLEY_GREEN, (0.0, 147.0, 55.0, 1.0);
        "sickly yellow", SICKLY_YELLOW, (208.0, 228.0, 41.0, 1.0);
        "sunny yellow", SUNNY_YELLOW, (255.0, 249.0, 23.0, 1.0);
        "azul", AZUL, (29.0, 93.0, 236.0, 1.0);
        "darkgreen", DARKGREEN, (5.0, 73.0, 7.0, 1.0);
        "lichen", LICHEN, (143.0, 182.0, 123.0, 1.0);
        "light light green", LIGHT_LIGHT_GREEN, (200.0, 255.0, 176.0, 1.0);
        "pale gold", PALE_GOLD, (253.0, 222.0, 108.0, 1.0);
        "sun yellow", SUN_YELLOW, (255.0, 223.0, 34.0, 1.0);
        "tan green", TAN_GREEN, (169.0, 190.0, 112.0, 1.0);
        "burple", BURPLE, (104.0, 50.0, 227.0, 1.0);
        "butterscotch", BUTTERSCOTCH, (253.0, 177.0, 71.0, 1.0);
        "toupe", TOUPE, (199.0, 172.0, 125.0, 1.0);
        "dark cream", DARK_CREAM, (255.0, 243.0, 154.0, 1.0);
        "indian red", INDIAN_RED, (133.0, 14.0, 4.0, 1.0);
        "light lavendar", LIGHT_LAVENDAR, (239.0, 192.0, 254.0, 1.0);
        "poison green", POISON_GREEN, (64.0, 253.0, 20.0, 1.0);
        "baby puke green", BABY_PUKE_GREEN, (182.0, 196.0, 6.0, 1.0);
        "bright yellow green", BRIGHT_YELLOW_GREEN, (157.0, 255.0, 0.0, 1.0);
        "charcoal grey", CHARCOAL_GREY, (60.0, 65.0, 66.0, 1.0);
        "squash", SQUASH, (242.0, 171.0, 21.0, 1.0);
        "cinnamon", CINNAMON, (172.0, 79.0, 6.0, 1.0);
        "light pea green", LIGHT_PEA_GREEN, (196.0, 254.0, 130.0, 1.0);
        "radioactive green", RADIOACTIVE_GREEN, (44.0, 250.0, 31.0, 1.0);
        "raw sienna", RAW_SIENNA, (154.0, 98.0, 0.0, 1.0);
        "baby purple", BABY_PURPLE, (202.0, 155.0, 247.0, 1.0);
        "cocoa", COCOA, (135.0, 95.0, 66.0, 1.0);
        "light royal blue", LIGHT_ROYAL_BLUE, (58.0, 46.0, 254.0, 1.0);
        "orangeish", ORANGEISH, (253.0, 141.0, 73.0, 1.0);
        "rust brown", RUST_BROWN, (139.0, 49.0, 3.0, 1.0);
        "sand brown", SAND_BROWN, (203.0, 165.0, 96.0, 1.0);
        "swamp", SWAMP, (105.0, 131.0, 57.0, 1.0);
        "tealish green", TEALISH_GREEN, (12.0, 220.0, 115.0, 1.0);
        "burnt siena", BURNT_SIENA, (183.0, 82.0, 3.0, 1.0);
        "camo", CAMO, (127.0, 143.0, 78.0, 1.0);
        "dusk blue", DUSK_BLUE, (38.0, 83.0, 141.0, 1.0);
        "fern", FERN, (99.0, 169.0, 80.0, 1.0);
        "old rose", OLD_ROSE, (200.0, 127.0, 137.0, 1.0);
        "pale light green", PALE_LIGHT_GREEN, (177.0, 252.0, 153.0, 1.0);
        "peachy pink", PEACHY_PINK, (255.0, 154.0, 138.0, 1.0);
        "rosy pink", ROSY_PINK, (246.0, 104.0, 142.0, 1.0);
        "light bluish green", LIGHT_BLUISH_GREEN, (118.0, 253.0, 168.0, 1.0);
        "light bright green", LIGHT_BRIGHT_GREEN, (83.0, 254.0, 92.0, 1.0);
        "light neon green", LIGHT_NEON_GREEN, (78.0, 253.0, 84.0, 1.0);
        "light seafoam", LIGHT_SEAFOAM, (160.0, 254.0, 191.0, 1.0);
        "tiffany blue", TIFFANY_BLUE, (123.0, 242.0, 218.0, 1.0);
        "washed out green", WASHED_OUT_GREEN, (188.0, 245.0, 166.0, 1.0);
        "browny orange", BROWNY_ORANGE, (202.0, 107.0, 2.0, 1.0);
        "nice blue", NICE_BLUE, (16.0, 122.0, 176.0, 1.0);
        "sapphire", SAPPHIRE, (33.0, 56.0, 171.0, 1.0);
        "greyish teal", GREYISH_TEAL, (113.0, 159.0, 145.0, 1.0);
        "orangey yellow", ORANGEY_YELLOW, (253.0, 185.0, 21.0, 1.0);
        "parchment", PARCHMENT, (254.0, 252.0, 175.0, 1.0);
        "straw", STRAW, (252.0, 246.0, 121.0, 1.0);
        "very dark brown", VERY_DARK_BROWN, (29.0, 2.0, 0.0, 1.0);
        "terracota", TERRACOTA, (203.0, 104.0, 67.0, 1.0);
        "ugly blue", UGLY_BLUE, (49.0, 102.0, 138.0, 1.0);
        "clear blue", CLEAR_BLUE, (36.0, 122.0, 253.0, 1.0);
        "creme", CREME, (255.0, 255.0, 182.0, 1.0);
        "foam green", FOAM_GREEN, (144.0, 253.0, 169.0, 1.0);
        "light gold", LIGHT_GOLD, (253.0, 220.0, 92.0, 1.0);
        "seafoam blue", SEAFOAM_BLUE, (120.0, 209.0, 182.0, 1.0);
        "topaz", TOPAZ, (19.0, 187.0, 175.0, 1.0);
        "violet pink", VIOLET_PINK, (251.0, 95.0, 252.0, 1.0);
        "wintergreen", WINTERGREEN, (32.0, 249.0, 134.0, 1.0);
        "yellow tan", YELLOW_TAN, (255.0, 227.0, 110.0, 1.0);
        "dark fuchsia", DARK_FUCHSIA, (157.0, 7.0, 89.0, 1.0);
        "indigo blue", INDIGO_BLUE, (58.0, 24.0, 177.0, 1.0);
        "light yellowish green", LIGHT_YELLOWISH_GREEN, (194.0, 255.0, 137.0, 1.0);
        "pale magenta", PALE_MAGENTA, (215.0, 103.0, 173.0, 1.0);
        "rich purple", RICH_PURPLE, (114.0, 0.0, 88.0, 1.0);
        "sunflower yellow", SUNFLOWER_YELLOW, (255.0, 218.0, 3.0, 1.0);
        "leather", LEATHER, (172.0, 116.0, 52.0, 1.0);
        "racing green", RACING_GREEN, (1.0, 70.0, 0.0, 1.0);
        "vivid purple", VIVID_PURPLE, (153.0, 0.0, 250.0, 1.0);
        "dark royal blue", DARK_ROYAL_BLUE, (2.0, 6.0, 111.0, 1.0);
        "hazel", HAZEL, (142.0, 118.0, 24.0, 1.0);
        "muted pink", MUTED_PINK, (209.0, 118.0, 143.0, 1.0);
        "booger green", BOOGER_GREEN, (150.0, 180.0, 3.0, 1.0);
        "canary", CANARY, (253.0, 255.0, 99.0, 1.0);
        "cool grey", COOL_GREY, (149.0, 163.0, 166.0, 1.0);
        "dark taupe", DARK_TAUPE, (127.0, 104.0, 78.0, 1.0);
        "darkish purple", DARKISH_PURPLE, (117.0, 25.0, 115.0, 1.0);
        "true green", TRUE_GREEN, (8.0, 148.0, 4.0, 1.0);
        "coral pink", CORAL_PINK, (255.0, 97.0, 99.0, 1.0);
        "dark sage", DARK_SAGE, (89.0, 133.0, 86.0, 1.0);
        "dark slate blue", DARK_SLATE_BLUE, (33.0, 71.0, 97.0, 1.0);
        "flat blue", FLAT_BLUE, (60.0, 115.0, 168.0, 1.0);
        "mushroom", MUSHROOM, (186.0, 158.0, 136.0, 1.0);
        "rich blue", RICH_BLUE, (2.0, 27.0, 249.0, 1.0);
        "dirty purple", DIRTY_PURPLE, (115.0, 74.0, 101.0, 1.0);
        "greenblue", GREENBLUE, (35.0, 196.0, 139.0, 1.0);
        "icky green", ICKY_GREEN, (143.0, 174.0, 34.0, 1.0);
        "light khaki", LIGHT_KHAKI, (230.0, 242.0, 162.0, 1.0);
        "warm blue", WARM_BLUE, (75.0, 87.0, 219.0, 1.0);
        "dark hot pink", DARK_HOT_PINK, (217.0, 1.0, 102.0, 1.0);
        "deep sea blue", DEEP_SEA_BLUE, (1.0, 84.0, 130.0, 1.0);
        "carmine", CARMINE, (157.0, 2.0, 22.0, 1.0);
        "dark yellow green", DARK_YELLOW_GREEN, (114.0, 143.0, 2.0, 1.0);
        "pale peach", PALE_PEACH, (255.0, 229.0, 173.0, 1.0);
        "plum purple", PLUM_PURPLE, (78.0, 5.0, 80.0, 1.0);
        "golden rod", GOLDEN_ROD, (249.0, 188.0, 8.0, 1.0);
        "neon red", NEON_RED, (255.0, 7.0, 58.0, 1.0);
        "old pink", OLD_PINK, (199.0, 121.0, 134.0, 1.0);
        "very pale blue", VERY_PALE_BLUE, (214.0, 255.0, 254.0, 1.0);
        "blood orange", BLOOD_ORANGE, (254.0, 75.0, 3.0, 1.0);
        "grapefruit", GRAPEFRUIT, (253.0, 89.0, 86.0, 1.0);
        "sand yellow", SAND_YELLOW, (252.0, 225.0, 102.0, 1.0);
        "clay brown", CLAY_BROWN, (178.0, 113.0, 61.0, 1.0);
        "dark blue grey", DARK_BLUE_GREY, (31.0, 59.0, 77.0, 1.0);
        "flat green", FLAT_GREEN, (105.0, 157.0, 76.0, 1.0);
        "light green blue", LIGHT_GREEN_BLUE, (86.0, 252.0, 162.0, 1.0);
        "warm pink", WARM_PINK, (251.0, 85.0, 129.0, 1.0);
        "dodger blue", DODGER_BLUE, (62.0, 130.0, 252.0, 1.0);
        "gross green", GROSS_GREEN, (160.0, 191.0, 22.0, 1.0);
        "ice", ICE, (214.0, 255.0, 250.0, 1.0);
        "metallic blue", METALLIC_BLUE, (79.0, 115.0, 142.0, 1.0);
        "pale salmon", PALE_SALMON, (255.0, 177.0, 154.0, 1.0);
        "sap green", SAP_GREEN, (92.0, 139.0, 21.0, 1.0);
        "algae", ALGAE, (84.0, 172.0, 104.0, 1.0);
        "bluey grey", BLUEY_GREY, (137.0, 160.0, 176.0, 1.0);
        "greeny grey", GREENY_GREY, (126.0, 160.0, 122.0, 1.0);
        "highlighter green", HIGHLIGHTER_GREEN, (27.0, 252.0, 6.0, 1.0);
        "light light blue", LIGHT_LIGHT_BLUE, (202.0, 255.0, 251.0, 1.0);
        "light mint", LIGHT_MINT, (182.0, 255.0, 187.0, 1.0);
        "raw umber", RAW_UMBER, (167.0, 94.0, 9.0, 1.0);
        "vivid blue", VIVID_BLUE, (21.0, 46.0, 255.0, 1.0);
        "deep lavender", DEEP_LAVENDER, (141.0, 94.0, 183.0, 1.0);
        "dull teal", DULL_TEAL, (95.0, 158.0, 143.0, 1.0);
        "light greenish blue", LIGHT_GREENISH_BLUE, (99.0, 247.0, 180.0, 1.0);
        "mud green", MUD_GREEN, (96.0, 102.0, 2.0, 1.0);
        "pinky", PINKY, (252.0, 134.0, 170.0, 1.0);
        "red wine", RED_WINE, (140.0, 0.0, 52.0, 1.0);
        "shit green", SHIT_GREEN, (117.0, 128.0, 0.0, 1.0);
        "tan brown", TAN_BROWN, (171.0, 126.0, 76.0, 1.0);
        "darkblue", DARKBLUE, (3.0, 7.0, 100.0, 1.0);
        "rosa", ROSA, (254.0, 134.0, 164.0, 1.0);
        "lipstick", LIPSTICK, (213.0, 23.0, 78.0, 1.0);
        "pale mauve", PALE_MAUVE, (254.0, 208.0, 252.0, 1.0);
        "claret", CLARET, (104.0, 0.0, 24.0, 1.0);
        "dandelion", DANDELION, (254.0, 223.0, 8.0, 1.0);
        "orangered", ORANGERED, (254.0, 66.0, 15.0, 1.0);
        "poop green", POOP_GREEN, (111.0, 124.0, 0.0, 1.0);
        "ruby", RUBY, (202.0, 1.0, 71.0, 1.0);
        "dark", DARK, (27.0, 36.0, 49.0, 1.0);
        "greenish turquoise", GREENISH_TURQUOISE, (0.0, 251.0, 176.0, 1.0);
        "pastel red", PASTEL_RED, (219.0, 88.0, 86.0, 1.0);
        "piss yellow", PISS_YELLOW, (221.0, 214.0, 24.0, 1.0);
        "bright cyan", BRIGHT_CYAN, (65.0, 253.0, 254.0, 1.0);
        "dark coral", DARK_CORAL, (207.0, 82.0, 78.0, 1.0);
        "algae green", ALGAE_GREEN, (33.0, 195.0, 111.0, 1.0);
        "darkish red", DARKISH_RED, (169.0, 3.0, 8.0, 1.0);
        "reddy brown", REDDY_BROWN, (110.0, 16.0, 5.0, 1.0);
        "blush pink", BLUSH_PINK, (254.0, 130.0, 140.0, 1.0);
        "camouflage green", CAMOUFLAGE_GREEN, (75.0, 97.0, 19.0, 1.0);
        "lawn green", LAWN_GREEN, (77.0, 164.0, 9.0, 1.0);
        "putty", PUTTY, (190.0, 174.0, 138.0, 1.0);
        "vibrant blue", VIBRANT_BLUE, (3.0, 57.0, 248.0, 1.0);
        "dark sand", DARK_SAND, (168.0, 143.0, 89.0, 1.0);
        "saffron", SAFFRON, (254.0, 178.0, 9.0, 1.0);
        "twilight", TWILIGHT, (78.0, 81.0, 139.0, 1.0);
        "warm brown", WARM_BROWN, (150.0, 78.0, 2.0, 1.0);
        "bluegrey", BLUEGREY, (133.0, 163.0, 178.0, 1.0);
        "bubble gum pink", BUBBLE_GUM_PINK, (255.0, 105.0, 175.0, 1.0);
        "duck egg blue", DUCK_EGG_BLUE, (195.0, 251.0, 244.0, 1.0);
        "greenish cyan", GREENISH_CYAN, (42.0, 254.0, 183.0, 1.0);
        "petrol", PETROL, (0.0, 95.0, 106.0, 1.0);
        "royal", ROYAL, (12.0, 23.0, 147.0, 1.0);
        "butter", BUTTER, (255.0, 255.0, 129.0, 1.0);
        "dusty orange", DUSTY_ORANGE, (240.0, 131.0, 58.0, 1.0);
        "off yellow", OFF_YELLOW, (241.0, 243.0, 63.0, 1.0);
        "pale olive green", PALE_OLIVE_GREEN, (177.0, 210.0, 123.0, 1.0);
        "orangish", ORANGISH, (252.0, 130.0, 74.0, 1.0);
        "leaf", LEAF, (113.0, 170.0, 52.0, 1.0);
        "light blue grey", LIGHT_BLUE_GREY, (183.0, 201.0, 226.0, 1.0);
        "dried blood", DRIED_BLOOD, (75.0, 1.0, 1.0, 1.0);
        "lightish purple", LIGHTISH_PURPLE, (165.0, 82.0, 230.0, 1.0);
        "rusty red", RUSTY_RED, (175.0, 47.0, 13.0, 1.0);
        "lavender blue", LAVENDER_BLUE, (139.0, 136.0, 248.0, 1.0);
        "light grass green", LIGHT_GRASS_GREEN, (154.0, 247.0, 100.0, 1.0);
        "light mint green", LIGHT_MINT_GREEN, (166.0, 251.0, 178.0, 1.0);
        "sunflower", SUNFLOWER, (255.0, 197.0, 18.0, 1.0);
        "velvet", VELVET, (117.0, 8.0, 81.0, 1.0);
        "brick orange", BRICK_ORANGE, (193.0, 74.0, 9.0, 1.0);
        "lightish red", LIGHTISH_RED, (254.0, 47.0, 74.0, 1.0);
        "pure blue", PURE_BLUE, (2.0, 3.0, 226.0, 1.0);
        "twilight blue", TWILIGHT_BLUE, (10.0, 67.0, 122.0, 1.0);
        "violet red", VIOLET_RED, (165.0, 0.0, 85.0, 1.0);
        "yellowy brown", YELLOWY_BROWN, (174.0, 139.0, 12.0, 1.0);
        "carnation", CARNATION, (253.0, 121.0, 143.0, 1.0);
        "muddy yellow", MUDDY_YELLOW, (191.0, 172.0, 5.0, 1.0);
        "dark seafoam green", DARK_SEAFOAM_GREEN, (62.0, 175.0, 118.0, 1.0);
        "deep rose", DEEP_ROSE, (199.0, 71.0, 103.0, 1.0);
        "dusty red", DUSTY_RED, (185.0, 72.0, 78.0, 1.0);
        "lemon lime", LEMON_LIME, (191.0, 254.0, 40.0, 1.0);
        "brown yellow", BROWN_YELLOW, (178.0, 151.0, 5.0, 1.0);
        "purple brown", PURPLE_BROWN, (103.0, 58.0, 63.0, 1.0);
        "wisteria", WISTERIA, (168.0, 125.0, 194.0, 1.0);
        "banana yellow", BANANA_YELLOW, (250.0, 254.0, 75.0, 1.0);
        "lipstick red", LIPSTICK_RED, (192.0, 2.0, 47.0, 1.0);
        "water blue", WATER_BLUE, (14.0, 135.0, 204.0, 1.0);
        "brown grey", BROWN_GREY, (141.0, 132.0, 104.0, 1.0);
        "vibrant purple", VIBRANT_PURPLE, (173.0, 3.0, 222.0, 1.0);
        "baby green", BABY_GREEN, (140.0, 255.0, 158.0, 1.0);
        "barf green", BARF_GREEN, (148.0, 172.0, 2.0, 1.0);
        "eggshell blue", EGGSHELL_BLUE, (196.0, 255.0, 247.0, 1.0);
        "sandy yellow", SANDY_YELLOW, (253.0, 238.0, 115.0, 1.0);
        "cool green", COOL_GREEN, (51.0, 184.0, 100.0, 1.0);
        "pale", PALE, (255.0, 249.0, 208.0, 1.0);
        "hot magenta", HOT_MAGENTA, (245.0, 4.0, 201.0, 1.0);
        "greyblue", GREYBLUE, (119.0, 161.0, 181.0, 1.0);
        "purpley", PURPLEY, (135.0, 86.0, 228.0, 1.0);
        "baby shit green", BABY_SHIT_GREEN, (136.0, 151.0, 23.0, 1.0);
        "brownish pink", BROWNISH_PINK, (194.0, 126.0, 121.0, 1.0);
        "dark aquamarine", DARK_AQUAMARINE, (1.0, 115.0, 113.0, 1.0);
        "diarrhea", DIARRHEA, (159.0, 131.0, 3.0, 1.0);
        "light mustard", LIGHT_MUSTARD, (247.0, 213.0, 96.0, 1.0);
        "pale sky blue", PALE_SKY_BLUE, (189.0, 246.0, 254.0, 1.0);
        "turtle green", TURTLE_GREEN, (117.0, 184.0, 79.0, 1.0);
        "bright olive", BRIGHT_OLIVE, (156.0, 187.0, 4.0, 1.0);
        "dark grey blue", DARK_GREY_BLUE, (41.0, 70.0, 91.0, 1.0);
        "greeny brown", GREENY_BROWN, (105.0, 96.0, 6.0, 1.0);
        "lemon green", LEMON_GREEN, (173.0, 248.0, 2.0, 1.0);
        "light periwinkle", LIGHT_PERIWINKLE, (193.0, 198.0, 252.0, 1.0);
        "seaweed green", SEAWEED_GREEN, (53.0, 173.0, 107.0, 1.0);
        "sunshine yellow", SUNSHINE_YELLOW, (255.0, 253.0, 55.0, 1.0);
        "ugly purple", UGLY_PURPLE, (164.0, 66.0, 160.0, 1.0);
        "medium pink", MEDIUM_PINK, (243.0, 97.0, 150.0, 1.0);
        "puke brown", PUKE_BROWN, (148.0, 119.0, 6.0, 1.0);
        "very light pink", VERY_LIGHT_PINK, (255.0, 244.0, 242.0, 1.0);
        "viridian", VIRIDIAN, (30.0, 145.0, 103.0, 1.0);
        "bile", BILE, (181.0, 195.0, 6.0, 1.0);
        "faded yellow", FADED_YELLOW, (254.0, 255.0, 127.0, 1.0);
        "very pale green", VERY_PALE_GREEN, (207.0, 253.0, 188.0, 1.0);
        "vibrant green", VIBRANT_GREEN, (10.0, 221.0, 8.0, 1.0);
        "bright lime", BRIGHT_LIME, (135.0, 253.0, 5.0, 1.0);
        "spearmint", SPEARMINT, (30.0, 248.0, 118.0, 1.0);
        "light aquamarine", LIGHT_AQUAMARINE, (123.0, 253.0, 199.0, 1.0);
        "light sage", LIGHT_SAGE, (188.0, 236.0, 172.0, 1.0);
        "yellowgreen", YELLOWGREEN, (187.0, 249.0, 15.0, 1.0);
        "baby poo", BABY_POO, (171.0, 144.0, 4.0, 1.0);
        "dark seafoam", DARK_SEAFOAM, (31.0, 181.0, 122.0, 1.0);
        "deep teal", DEEP_TEAL, (0.0, 85.0, 90.0, 1.0);
        "heather", HEATHER, (164.0, 132.0, 172.0, 1.0);
        "rust orange", RUST_ORANGE, (196.0, 85.0, 8.0, 1.0);
        "dirty blue", DIRTY_BLUE, (63.0, 130.0, 157.0, 1.0);
        "fern green", FERN_GREEN, (84.0, 141.0, 68.0, 1.0);
        "bright lilac", BRIGHT_LILAC, (201.0, 94.0, 251.0, 1.0);
        "weird green", WEIRD_GREEN, (58.0, 229.0, 127.0, 1.0);
        "peacock blue", PEACOCK_BLUE, (1.0, 103.0, 149.0, 1.0);
        "avocado green", AVOCADO_GREEN, (135.0, 169.0, 34.0, 1.0);
        "faded orange", FADED_ORANGE, (240.0, 148.0, 77.0, 1.0);
        "grape purple", GRAPE_PURPLE, (93.0, 20.0, 81.0, 1.0);
        "hot green", HOT_GREEN, (37.0, 255.0, 41.0, 1.0);
        "lime yellow", LIME_YELLOW, (208.0, 254.0, 29.0, 1.0);
        "mango", MANGO, (255.0, 166.0, 43.0, 1.0);
        "shamrock", SHAMROCK, (1.0, 180.0, 76.0, 1.0);
        "bubblegum", BUBBLEGUM, (255.0, 108.0, 181.0, 1.0);
        "purplish brown", PURPLISH_BROWN, (107.0, 66.0, 71.0, 1.0);
        "vomit yellow", VOMIT_YELLOW, (199.0, 193.0, 12.0, 1.0);
        "pale cyan", PALE_CYAN, (183.0, 255.0, 250.0, 1.0);
        "key lime", KEY_LIME, (174.0, 255.0, 110.0, 1.0);
        "tomato red", TOMATO_RED, (236.0, 45.0, 1.0, 1.0);
        "lightgreen", LIGHTGREEN, (118.0, 255.0, 123.0, 1.0);
        "merlot", MERLOT, (115.0, 0.0, 57.0, 1.0);
        "night blue", NIGHT_BLUE, (4.0, 3.0, 72.0, 1.0);
        "purpleish pink", PURPLEISH_PINK, (223.0, 78.0, 200.0, 1.0);
        "apple", APPLE, (110.0, 203.0, 60.0, 1.0);
        "baby poop green", BABY_POOP_GREEN, (143.0, 152.0, 5.0, 1.0);
        "green apple", GREEN_APPLE, (94.0, 220.0, 31.0, 1.0);
        "heliotrope", HELIOTROPE, (217.0, 79.0, 245.0, 1.0);
        "almost black", ALMOST_BLACK, (7.0, 13.0, 13.0, 1.0);
        "cool blue", COOL_BLUE, (73.0, 132.0, 184.0, 1.0);
        "leafy green", LEAFY_GREEN, (81.0, 183.0, 59.0, 1.0);
        "mustard brown", MUSTARD_BROWN, (172.0, 126.0, 4.0, 1.0);
        "dusk", DUSK, (78.0, 84.0, 129.0, 1.0);
        "dull brown", DULL_BROWN, (135.0, 110.0, 75.0, 1.0);
        "frog green", FROG_GREEN, (88.0, 188.0, 8.0, 1.0);
        "vivid green", VIVID_GREEN, (47.0, 239.0, 16.0, 1.0);
        "bright light green", BRIGHT_LIGHT_GREEN, (45.0, 254.0, 84.0, 1.0);
        "fluro green", FLURO_GREEN, (10.0, 255.0, 2.0, 1.0);
        "kiwi", KIWI, (156.0, 239.0, 67.0, 1.0);
        "seaweed", SEAWEED, (24.0, 209.0, 123.0, 1.0);
        "navy green", NAVY_GREEN, (53.0, 83.0, 10.0, 1.0);
        "ultramarine blue", ULTRAMARINE_BLUE, (24.0, 5.0, 219.0, 1.0);
        "iris", IRIS, (98.0, 88.0, 196.0, 1.0);
        "pastel orange", PASTEL_ORANGE, (255.0, 150.0, 79.0, 1.0);
        "yellowish orange", YELLOWISH_ORANGE, (255.0, 171.0, 15.0, 1.0);
        "perrywinkle", PERRYWINKLE, (143.0, 140.0, 231.0, 1.0);
        "tealish", TEALISH, (36.0, 188.0, 168.0, 1.0);
        "dark plum", DARK_PLUM, (63.0, 1.0, 44.0, 1.0);
        "pear", PEAR, (203.0, 248.0, 95.0, 1.0);
        "pinkish orange", PINKISH_ORANGE, (255.0, 114.0, 76.0, 1.0);
        "midnight purple", MIDNIGHT_PURPLE, (40.0, 1.0, 55.0, 1.0);
        "light urple", LIGHT_URPLE, (179.0, 111.0, 246.0, 1.0);
        "dark mint", DARK_MINT, (72.0, 192.0, 114.0, 1.0);
        "greenish tan", GREENISH_TAN, (188.0, 203.0, 122.0, 1.0);
        "light burgundy", LIGHT_BURGUNDY, (168.0, 65.0, 91.0, 1.0);
        "turquoise blue", TURQUOISE_BLUE, (6.0, 177.0, 196.0, 1.0);
        "ugly pink", UGLY_PINK, (205.0, 117.0, 132.0, 1.0);
        "sandy", SANDY, (241.0, 218.0, 122.0, 1.0);
        "electric pink", ELECTRIC_PINK, (255.0, 4.0, 144.0, 1.0);
        "muted purple", MUTED_PURPLE, (128.0, 91.0, 135.0, 1.0);
        "mid green", MID_GREEN, (80.0, 167.0, 71.0, 1.0);
        "greyish", GREYISH, (168.0, 164.0, 149.0, 1.0);
        "neon yellow", NEON_YELLOW, (207.0, 255.0, 4.0, 1.0);
        "banana", BANANA, (255.0, 255.0, 126.0, 1.0);
        "carnation pink", CARNATION_PINK, (255.0, 127.0, 167.0, 1.0);
        "tomato", TOMATO, (239.0, 64.0, 38.0, 1.0);
        "sea", SEA, (60.0, 153.0, 146.0, 1.0);
        "muddy brown", MUDDY_BROWN, (136.0, 104.0, 6.0, 1.0);
        "turquoise green", TURQUOISE_GREEN, (4.0, 244.0, 137.0, 1.0);
        "buff", BUFF, (254.0, 246.0, 158.0, 1.0);
        "fawn", FAWN, (207.0, 175.0, 123.0, 1.0);
        "muted blue", MUTED_BLUE, (59.0, 113.0, 159.0, 1.0);
        "pale rose", PALE_ROSE, (253.0, 193.0, 197.0, 1.0);
        "dark mint green", DARK_MINT_GREEN, (32.0, 192.0, 115.0, 1.0);
        "amethyst", AMETHYST, (155.0, 95.0, 192.0, 1.0);
        "chestnut", CHESTNUT, (116.0, 40.0, 2.0, 1.0);
        "sick green", SICK_GREEN, (157.0, 185.0, 44.0, 1.0);
        "pea", PEA, (164.0, 191.0, 32.0, 1.0);
        "rusty orange", RUSTY_ORANGE, (205.0, 89.0, 9.0, 1.0);
        "stone", STONE, (173.0, 165.0, 135.0, 1.0);
        "rose red", ROSE_RED, (190.0, 1.0, 60.0, 1.0);
        "pale aqua", PALE_AQUA, (184.0, 255.0, 235.0, 1.0);
        "deep orange", DEEP_ORANGE, (220.0, 77.0, 1.0, 1.0);
        "earth", EARTH, (162.0, 101.0, 62.0, 1.0);
        "mossy green", MOSSY_GREEN, (99.0, 139.0, 39.0, 1.0);
        "grassy green", GRASSY_GREEN, (65.0, 156.0, 3.0, 1.0);
        "pale lime green", PALE_LIME_GREEN, (177.0, 255.0, 101.0, 1.0);
        "light grey blue", LIGHT_GREY_BLUE, (157.0, 188.0, 212.0, 1.0);
        "pale grey", PALE_GREY, (253.0, 253.0, 254.0, 1.0);
        "asparagus", ASPARAGUS, (119.0, 171.0, 86.0, 1.0);
        "blueberry", BLUEBERRY, (70.0, 65.0, 150.0, 1.0);
        "purple red", PURPLE_RED, (153.0, 1.0, 71.0, 1.0);
        "pale lime", PALE_LIME, (190.0, 253.0, 115.0, 1.0);
        "greenish teal", GREENISH_TEAL, (50.0, 191.0, 132.0, 1.0);
        "caramel", CARAMEL, (175.0, 111.0, 9.0, 1.0);
        "deep magenta", DEEP_MAGENTA, (160.0, 2.0, 92.0, 1.0);
        "light peach", LIGHT_PEACH, (255.0, 216.0, 177.0, 1.0);
        "milk chocolate", MILK_CHOCOLATE, (127.0, 78.0, 30.0, 1.0);
        "ocher", OCHER, (191.0, 155.0, 12.0, 1.0);
        "off green", OFF_GREEN, (107.0, 163.0, 83.0, 1.0);
        "purply pink", PURPLY_PINK, (240.0, 117.0, 230.0, 1.0);
        "lightblue", LIGHTBLUE, (123.0, 200.0, 246.0, 1.0);
        "dusky blue", DUSKY_BLUE, (71.0, 95.0, 148.0, 1.0);
        "golden", GOLDEN, (245.0, 191.0, 3.0, 1.0);
        "light beige", LIGHT_BEIGE, (255.0, 254.0, 182.0, 1.0);
        "butter yellow", BUTTER_YELLOW, (255.0, 253.0, 116.0, 1.0);
        "dusky purple", DUSKY_PURPLE, (137.0, 91.0, 123.0, 1.0);
        "french blue", FRENCH_BLUE, (67.0, 107.0, 173.0, 1.0);
        "ugly yellow", UGLY_YELLOW, (208.0, 193.0, 1.0, 1.0);
        "greeny yellow", GREENY_YELLOW, (198.0, 248.0, 8.0, 1.0);
        "orangish red", ORANGISH_RED, (244.0, 54.0, 5.0, 1.0);
        "shamrock green", SHAMROCK_GREEN, (2.0, 193.0, 77.0, 1.0);
        "orangish brown", ORANGISH_BROWN, (178.0, 95.0, 3.0, 1.0);
        "tree green", TREE_GREEN, (42.0, 126.0, 25.0, 1.0);
        "deep violet", DEEP_VIOLET, (73.0, 6.0, 72.0, 1.0);
        "gunmetal", GUNMETAL, (83.0, 98.0, 103.0, 1.0);
        "cherry", CHERRY, (207.0, 2.0, 52.0, 1.0);
        "sandy brown", SANDY_BROWN, (196.0, 166.0, 97.0, 1.0);
        "warm grey", WARM_GREY, (151.0, 138.0, 132.0, 1.0);
        "dark indigo", DARK_INDIGO, (31.0, 9.0, 84.0, 1.0);
        "midnight", MIDNIGHT, (3.0, 1.0, 45.0, 1.0);
        "bluey green", BLUEY_GREEN, (43.0, 177.0, 121.0, 1.0);
        "grey pink", GREY_PINK, (195.0, 144.0, 155.0, 1.0);
        "soft purple", SOFT_PURPLE, (166.0, 111.0, 181.0, 1.0);
        "blood", BLOOD, (119.0, 0.0, 1.0, 1.0);
        "brown red", BROWN_RED, (146.0, 43.0, 5.0, 1.0);
        "medium grey", MEDIUM_GREY, (125.0, 127.0, 124.0, 1.0);
        "berry", BERRY, (153.0, 15.0, 75.0, 1.0);
        "poo", POO, (143.0, 115.0, 3.0, 1.0);
        "purpley pink", PURPLEY_PINK, (200.0, 60.0, 185.0, 1.0);
        "light salmon", LIGHT_SALMON, (254.0, 169.0, 147.0, 1.0);
        "snot", SNOT, (172.0, 187.0, 13.0, 1.0);
        "easter purple", EASTER_PURPLE, (192.0, 113.0, 254.0, 1.0);
        "light yellow green", LIGHT_YELLOW_GREEN, (204.0, 253.0, 127.0, 1.0);
        "dark navy blue", DARK_NAVY_BLUE, (0.0, 2.0, 46.0, 1.0);
        "drab", DRAB, (130.0, 131.0, 68.0, 1.0);
        "light rose", LIGHT_ROSE, (255.0, 197.0, 203.0, 1.0);
        "rouge", ROUGE, (171.0, 18.0, 57.0, 1.0);
        "purplish red", PURPLISH_RED, (176.0, 5.0, 75.0, 1.0);
        "slime green", SLIME_GREEN, (153.0, 204.0, 4.0, 1.0);
        "baby poop", BABY_POOP, (147.0, 124.0, 0.0, 1.0);
        "irish green", IRISH_GREEN, (1.0, 149.0, 41.0, 1.0);
        "dark navy", DARK_NAVY, (0.0, 4.0, 53.0, 1.0);
        "greeny blue", GREENY_BLUE, (66.0, 179.0, 149.0, 1.0);
        "light plum", LIGHT_PLUM, (157.0, 87.0, 131.0, 1.0);
        "pinkish grey", PINKISH_GREY, (200.0, 172.0, 169.0, 1.0);
        "dirty orange", DIRTY_ORANGE, (200.0, 118.0, 6.0, 1.0);
        "rust red", RUST_RED, (170.0, 39.0, 4.0, 1.0);
        "pale lilac", PALE_LILAC, (228.0, 203.0, 255.0, 1.0);
        "orangey red", ORANGEY_RED, (250.0, 66.0, 36.0, 1.0);
        "primary blue", PRIMARY_BLUE, (8.0, 4.0, 249.0, 1.0);
        "kermit green", KERMIT_GREEN, (92.0, 178.0, 0.0, 1.0);
        "brownish purple", BROWNISH_PURPLE, (118.0, 66.0, 78.0, 1.0);
        "murky green", MURKY_GREEN, (108.0, 122.0, 14.0, 1.0);
        "wheat", WHEAT, (251.0, 221.0, 126.0, 1.0);
        "very dark purple", VERY_DARK_PURPLE, (42.0, 1.0, 52.0, 1.0);
        "bottle green", BOTTLE_GREEN, (4.0, 74.0, 5.0, 1.0);
        "watermelon", WATERMELON, (253.0, 70.0, 89.0, 1.0);
        "deep sky blue", DEEP_SKY_BLUE, (13.0, 117.0, 248.0, 1.0);
        "fire engine red", FIRE_ENGINE_RED, (254.0, 0.0, 2.0, 1.0);
        "yellow ochre", YELLOW_OCHRE, (203.0, 157.0, 6.0, 1.0);
        "pumpkin orange", PUMPKIN_ORANGE, (251.0, 125.0, 7.0, 1.0);
        "pale olive", PALE_OLIVE, (185.0, 204.0, 129.0, 1.0);
        "light lilac", LIGHT_LILAC, (237.0, 200.0, 255.0, 1.0);
        "lightish green", LIGHTISH_GREEN, (97.0, 225.0, 96.0, 1.0);
        "carolina blue", CAROLINA_BLUE, (138.0, 184.0, 254.0, 1.0);
        "mulberry", MULBERRY, (146.0, 10.0, 78.0, 1.0);
        "shocking pink", SHOCKING_PINK, (254.0, 2.0, 162.0, 1.0);
        "auburn", AUBURN, (154.0, 48.0, 1.0, 1.0);
        "bright lime green", BRIGHT_LIME_GREEN, (101.0, 254.0, 8.0, 1.0);
        "celadon", CELADON, (190.0, 253.0, 183.0, 1.0);
        "pinkish brown", PINKISH_BROWN, (177.0, 114.0, 97.0, 1.0);
        "poo brown", POO_BROWN, (136.0, 95.0, 1.0, 1.0);
        "bright sky blue", BRIGHT_SKY_BLUE, (2.0, 204.0, 254.0, 1.0);
        "celery", CELERY, (193.0, 253.0, 149.0, 1.0);
        "dirt brown", DIRT_BROWN, (131.0, 101.0, 57.0, 1.0);
        "strawberry", STRAWBERRY, (251.0, 41.0, 67.0, 1.0);
        "dark lime", DARK_LIME, (132.0, 183.0, 1.0, 1.0);
        "copper", COPPER, (182.0, 99.0, 37.0, 1.0);
        "medium brown", MEDIUM_BROWN, (127.0, 81.0, 18.0, 1.0);
        "muted green", MUTED_GREEN, (95.0, 160.0, 82.0, 1.0);
        "robin's egg", ROBINS_EGG, (109.0, 237.0, 253.0, 1.0);
        "bright aqua", BRIGHT_AQUA, (11.0, 249.0, 234.0, 1.0);
        "bright lavender", BRIGHT_LAVENDER, (199.0, 96.0, 255.0, 1.0);
        "ivory", IVORY, (255.0, 255.0, 203.0, 1.0);
        "very light purple", VERY_LIGHT_PURPLE, (246.0, 206.0, 252.0, 1.0);
        "light navy", LIGHT_NAVY, (21.0, 80.0, 132.0, 1.0);
        "pink red", PINK_RED, (245.0, 5.0, 79.0, 1.0);
        "olive brown", OLIVE_BROWN, (100.0, 84.0, 3.0, 1.0);
        "poop brown", POOP_BROWN, (122.0, 89.0, 1.0, 1.0);
        "mustard green", MUSTARD_GREEN, (168.0, 181.0, 4.0, 1.0);
        "ocean green", OCEAN_GREEN, (61.0, 153.0, 115.0, 1.0);
        "very dark blue", VERY_DARK_BLUE, (0.0, 1.0, 51.0, 1.0);
        "dusty green", DUSTY_GREEN, (118.0, 169.0, 115.0, 1.0);
        "light navy blue", LIGHT_NAVY_BLUE, (46.0, 90.0, 136.0, 1.0);
        "minty green", MINTY_GREEN, (11.0, 247.0, 125.0, 1.0);
        "adobe", ADOBE, (189.0, 108.0, 72.0, 1.0);
        "barney", BARNEY, (172.0, 29.0, 184.0, 1.0);
        "jade green", JADE_GREEN, (43.0, 175.0, 106.0, 1.0);
        "bright light blue", BRIGHT_LIGHT_BLUE, (38.0, 247.0, 253.0, 1.0);
        "light lime", LIGHT_LIME, (174.0, 253.0, 108.0, 1.0);
        "dark khaki", DARK_KHAKI, (155.0, 143.0, 85.0, 1.0);
        "orange yellow", ORANGE_YELLOW, (255.0, 173.0, 1.0, 1.0);
        "ocre", OCRE, (198.0, 156.0, 4.0, 1.0);
        "maize", MAIZE, (244.0, 208.0, 84.0, 1.0);
        "faded pink", FADED_PINK, (222.0, 157.0, 172.0, 1.0);
        "british racing green", BRITISH_RACING_GREEN, (5.0, 72.0, 13.0, 1.0);
        "sandstone", SANDSTONE, (201.0, 174.0, 116.0, 1.0);
        "mud brown", MUD_BROWN, (96.0, 70.0, 15.0, 1.0);
        "light sea green", LIGHT_SEA_GREEN, (152.0, 246.0, 176.0, 1.0);
        "robin egg blue", ROBIN_EGG_BLUE, (138.0, 241.0, 254.0, 1.0);
        "aqua marine", AQUA_MARINE, (46.0, 232.0, 187.0, 1.0);
        "dark sea green", DARK_SEA_GREEN, (17.0, 135.0, 93.0, 1.0);
        "soft pink", SOFT_PINK, (253.0, 176.0, 192.0, 1.0);
        "orangey brown", ORANGEY_BROWN, (177.0, 96.0, 2.0, 1.0);
        "cherry red", CHERRY_RED, (247.0, 2.0, 42.0, 1.0);
        "burnt yellow", BURNT_YELLOW, (213.0, 171.0, 9.0, 1.0);
        "brownish grey", BROWNISH_GREY, (134.0, 119.0, 95.0, 1.0);
        "camel", CAMEL, (198.0, 159.0, 89.0, 1.0);
        "purplish grey", PURPLISH_GREY, (122.0, 104.0, 127.0, 1.0);
        "marine", MARINE, (4.0, 46.0, 96.0, 1.0);
        "greyish pink", GREYISH_PINK, (200.0, 141.0, 148.0, 1.0);
        "pale turquoise", PALE_TURQUOISE, (165.0, 251.0, 213.0, 1.0);
        "pastel yellow", PASTEL_YELLOW, (255.0, 254.0, 113.0, 1.0);
        "bluey purple", BLUEY_PURPLE, (98.0, 65.0, 199.0, 1.0);
        "canary yellow", CANARY_YELLOW, (255.0, 254.0, 64.0, 1.0);
        "faded red", FADED_RED, (211.0, 73.0, 78.0, 1.0);
        "sepia", SEPIA, (152.0, 94.0, 43.0, 1.0);
        "coffee", COFFEE, (166.0, 129.0, 76.0, 1.0);
        "bright magenta", BRIGHT_MAGENTA, (255.0, 8.0, 232.0, 1.0);
        "mocha", MOCHA, (157.0, 118.0, 81.0, 1.0);
        "ecru", ECRU, (254.0, 255.0, 202.0, 1.0);
        "purpleish", PURPLEISH, (152.0, 86.0, 141.0, 1.0);
        "cranberry", CRANBERRY, (158.0, 0.0, 58.0, 1.0);
        "darkish green", DARKISH_GREEN, (40.0, 124.0, 55.0, 1.0);
        "brown orange", BROWN_ORANGE, (185.0, 105.0, 2.0, 1.0);
        "dusky rose", DUSKY_ROSE, (186.0, 104.0, 115.0, 1.0);
        "melon", MELON, (255.0, 120.0, 85.0, 1.0);
        "sickly green", SICKLY_GREEN, (148.0, 178.0, 28.0, 1.0);
        "silver", SILVER, (197.0, 201.0, 199.0, 1.0);
        "purply blue", PURPLY_BLUE, (102.0, 26.0, 238.0, 1.0);
        "purpleish blue", PURPLEISH_BLUE, (97.0, 64.0, 239.0, 1.0);
        "hospital green", HOSPITAL_GREEN, (155.0, 229.0, 170.0, 1.0);
        "shit brown", SHIT_BROWN, (123.0, 88.0, 4.0, 1.0);
        "mid blue", MID_BLUE, (39.0, 106.0, 179.0, 1.0);
        "amber", AMBER, (254.0, 179.0, 8.0, 1.0);
        "easter green", EASTER_GREEN, (140.0, 253.0, 126.0, 1.0);
        "soft blue", SOFT_BLUE, (100.0, 136.0, 234.0, 1.0);
        "cerulean blue", CERULEAN_BLUE, (5.0, 110.0, 238.0, 1.0);
        "golden brown", GOLDEN_BROWN, (178.0, 122.0, 1.0, 1.0);
        "bright turquoise", BRIGHT_TURQUOISE, (15.0, 254.0, 249.0, 1.0);
        "red pink", RED_PINK, (250.0, 42.0, 85.0, 1.0);
        "red purple", RED_PURPLE, (130.0, 7.0, 71.0, 1.0);
        "greyish brown", GREYISH_BROWN, (122.0, 106.0, 79.0, 1.0);
        "vermillion", VERMILLION, (244.0, 50.0, 12.0, 1.0);
        "russet", RUSSET, (161.0, 57.0, 5.0, 1.0);
        "steel grey", STEEL_GREY, (111.0, 130.0, 138.0, 1.0);
        "lighter purple", LIGHTER_PURPLE, (165.0, 90.0, 244.0, 1.0);
        "bright violet", BRIGHT_VIOLET, (173.0, 10.0, 253.0, 1.0);
        "prussian blue", PRUSSIAN_BLUE, (0.0, 69.0, 119.0, 1.0);
        "slate green", SLATE_GREEN, (101.0, 141.0, 109.0, 1.0);
        "dirty pink", DIRTY_PINK, (202.0, 123.0, 128.0, 1.0);
        "dark blue green", DARK_BLUE_GREEN, (0.0, 82.0, 73.0, 1.0);
        "pine", PINE, (43.0, 93.0, 52.0, 1.0);
        "yellowy green", YELLOWY_GREEN, (191.0, 241.0, 40.0, 1.0);
        "dark gold", DARK_GOLD, (181.0, 148.0, 16.0, 1.0);
        "bluish", BLUISH, (41.0, 118.0, 187.0, 1.0);
        "darkish blue", DARKISH_BLUE, (1.0, 65.0, 130.0, 1.0);
        "dull red", DULL_RED, (187.0, 63.0, 63.0, 1.0);
        "pinky red", PINKY_RED, (252.0, 38.0, 71.0, 1.0);
        "bronze", BRONZE, (168.0, 121.0, 0.0, 1.0);
        "pale teal", PALE_TEAL, (130.0, 203.0, 178.0, 1.0);
        "military green", MILITARY_GREEN, (102.0, 124.0, 62.0, 1.0);
        "barbie pink", BARBIE_PINK, (254.0, 70.0, 165.0, 1.0);
        "bubblegum pink", BUBBLEGUM_PINK, (254.0, 131.0, 204.0, 1.0);
        "pea soup green", PEA_SOUP_GREEN, (148.0, 166.0, 23.0, 1.0);
        "dark mustard", DARK_MUSTARD, (168.0, 137.0, 5.0, 1.0);
        "shit", SHIT, (127.0, 95.0, 0.0, 1.0);
        "medium purple", MEDIUM_PURPLE, (158.0, 67.0, 162.0, 1.0);
        "very dark green", VERY_DARK_GREEN, (6.0, 46.0, 3.0, 1.0);
        "dirt", DIRT, (138.0, 110.0, 69.0, 1.0);
        "dusky pink", DUSKY_PINK, (204.0, 122.0, 139.0, 1.0);
        "red violet", RED_VIOLET, (158.0, 1.0, 104.0, 1.0);
        "lemon yellow", LEMON_YELLOW, (253.0, 255.0, 56.0, 1.0);
        "pistachio", PISTACHIO, (192.0, 250.0, 139.0, 1.0);
        "dull yellow", DULL_YELLOW, (238.0, 220.0, 91.0, 1.0);
        "dark lime green", DARK_LIME_GREEN, (126.0, 189.0, 1.0, 1.0);
        "denim blue", DENIM_BLUE, (59.0, 91.0, 146.0, 1.0);
        "teal blue", TEAL_BLUE, (1.0, 136.0, 159.0, 1.0);
        "lightish blue", LIGHTISH_BLUE, (61.0, 122.0, 253.0, 1.0);
        "purpley blue", PURPLEY_BLUE, (95.0, 52.0, 231.0, 1.0);
        "light indigo", LIGHT_INDIGO, (109.0, 90.0, 207.0, 1.0);
        "swamp green", SWAMP_GREEN, (116.0, 133.0, 0.0, 1.0);
        "brown green", BROWN_GREEN, (112.0, 108.0, 17.0, 1.0);
        "dark maroon", DARK_MAROON, (60.0, 0.0, 8.0, 1.0);
        "hot purple", HOT_PURPLE, (203.0, 0.0, 245.0, 1.0);
        "dark forest green", DARK_FOREST_GREEN, (0.0, 45.0, 4.0, 1.0);
        "faded blue", FADED_BLUE, (101.0, 140.0, 187.0, 1.0);
        "drab green", DRAB_GREEN, (116.0, 149.0, 81.0, 1.0);
        "light lime green", LIGHT_LIME_GREEN, (185.0, 255.0, 102.0, 1.0);
        "snot green", SNOT_GREEN, (157.0, 193.0, 0.0, 1.0);
        "yellowish", YELLOWISH, (250.0, 238.0, 102.0, 1.0);
        "light blue green", LIGHT_BLUE_GREEN, (126.0, 251.0, 179.0, 1.0);
        "bordeaux", BORDEAUX, (123.0, 0.0, 44.0, 1.0);
        "light mauve", LIGHT_MAUVE, (194.0, 146.0, 161.0, 1.0);
        "ocean", OCEAN, (1.0, 123.0, 146.0, 1.0);
        "marigold", MARIGOLD, (252.0, 192.0, 6.0, 1.0);
        "muddy green", MUDDY_GREEN, (101.0, 116.0, 50.0, 1.0);
        "dull orange", DULL_ORANGE, (216.0, 134.0, 59.0, 1.0);
        "steel", STEEL, (115.0, 133.0, 149.0, 1.0);
        "electric purple", ELECTRIC_PURPLE, (170.0, 35.0, 255.0, 1.0);
        "fluorescent green", FLUORESCENT_GREEN, (8.0, 255.0, 8.0, 1.0);
        "yellowish brown", YELLOWISH_BROWN, (155.0, 122.0, 1.0, 1.0);
        "blush", BLUSH, (242.0, 158.0, 142.0, 1.0);
        "soft green", SOFT_GREEN, (111.0, 194.0, 118.0, 1.0);
        "bright orange", BRIGHT_ORANGE, (255.0, 91.0, 0.0, 1.0);
        "lemon", LEMON, (253.0, 255.0, 82.0, 1.0);
        "purple grey", PURPLE_GREY, (134.0, 111.0, 133.0, 1.0);
        "acid green", ACID_GREEN, (143.0, 254.0, 9.0, 1.0);
        "pale lavender", PALE_LAVENDER, (238.0, 207.0, 254.0, 1.0);
        "violet blue", VIOLET_BLUE, (81.0, 10.0, 201.0, 1.0);
        "light forest green", LIGHT_FOREST_GREEN, (79.0, 145.0, 83.0, 1.0);
        "burnt red", BURNT_RED, (159.0, 35.0, 5.0, 1.0);
        "khaki green", KHAKI_GREEN, (114.0, 134.0, 57.0, 1.0);
        "cerise", CERISE, (222.0, 12.0, 98.0, 1.0);
        "faded purple", FADED_PURPLE, (145.0, 110.0, 153.0, 1.0);
        "apricot", APRICOT, (255.0, 177.0, 109.0, 1.0);
        "dark olive green", DARK_OLIVE_GREEN, (60.0, 77.0, 3.0, 1.0);
        "grey brown", GREY_BROWN, (127.0, 112.0, 83.0, 1.0);
        "green grey", GREEN_GREY, (119.0, 146.0, 111.0, 1.0);
        "true blue", TRUE_BLUE, (1.0, 15.0, 204.0, 1.0);
        "pale violet", PALE_VIOLET, (206.0, 174.0, 250.0, 1.0);
        "periwinkle blue", PERIWINKLE_BLUE, (143.0, 153.0, 251.0, 1.0);
        "light sky blue", LIGHT_SKY_BLUE, (198.0, 252.0, 255.0, 1.0);
        "blurple", BLURPLE, (85.0, 57.0, 204.0, 1.0);
        "green brown", GREEN_BROWN, (84.0, 78.0, 3.0, 1.0);
        "bluegreen", BLUEGREEN, (1.0, 122.0, 121.0, 1.0);
        "bright teal", BRIGHT_TEAL, (1.0, 249.0, 198.0, 1.0);
        "brownish yellow", BROWNISH_YELLOW, (201.0, 176.0, 3.0, 1.0);
        "pea soup", PEA_SOUP, (146.0, 153.0, 1.0, 1.0);
        "forest", FOREST, (11.0, 85.0, 9.0, 1.0);
        "barney purple", BARNEY_PURPLE, (160.0, 4.0, 152.0, 1.0);
        "ultramarine", ULTRAMARINE, (32.0, 0.0, 177.0, 1.0);
        "purplish", PURPLISH, (148.0, 86.0, 140.0, 1.0);
        "puke yellow", PUKE_YELLOW, (194.0, 190.0, 14.0, 1.0);
        "bluish grey", BLUISH_GREY, (116.0, 139.0, 151.0, 1.0);
        "dark periwinkle", DARK_PERIWINKLE, (102.0, 95.0, 209.0, 1.0);
        "dark lilac", DARK_LILAC, (156.0, 109.0, 165.0, 1.0);
        "reddish", REDDISH, (196.0, 66.0, 64.0, 1.0);
        "light maroon", LIGHT_MAROON, (162.0, 72.0, 87.0, 1.0);
        "dusty purple", DUSTY_PURPLE, (130.0, 95.0, 135.0, 1.0);
        "terra cotta", TERRA_COTTA, (201.0, 100.0, 59.0, 1.0);
        "avocado", AVOCADO, (144.0, 177.0, 52.0, 1.0);
        "marine blue", MARINE_BLUE, (1.0, 56.0, 106.0, 1.0);
        "teal green", TEAL_GREEN, (37.0, 163.0, 111.0, 1.0);
        "slate grey", SLATE_GREY, (89.0, 101.0, 109.0, 1.0);
        "lighter green", LIGHTER_GREEN, (117.0, 253.0, 99.0, 1.0);
        "electric green", ELECTRIC_GREEN, (33.0, 252.0, 13.0, 1.0);
        "dusty blue", DUSTY_BLUE, (90.0, 134.0, 173.0, 1.0);
        "golden yellow", GOLDEN_YELLOW, (254.0, 198.0, 21.0, 1.0);
        "bright yellow", BRIGHT_YELLOW, (255.0, 253.0, 1.0, 1.0);
        "light lavender", LIGHT_LAVENDER, (223.0, 197.0, 254.0, 1.0);
        "umber", UMBER, (178.0, 100.0, 0.0, 1.0);
        "poop", POOP, (127.0, 94.0, 0.0, 1.0);
        "dark peach", DARK_PEACH, (222.0, 126.0, 93.0, 1.0);
        "jungle green", JUNGLE_GREEN, (4.0, 130.0, 67.0, 1.0);
        "eggshell", EGGSHELL, (255.0, 255.0, 212.0, 1.0);
        "denim", DENIM, (59.0, 99.0, 140.0, 1.0);
        "yellow brown", YELLOW_BROWN, (183.0, 148.0, 0.0, 1.0);
        "dull purple", DULL_PURPLE, (132.0, 89.0, 126.0, 1.0);
        "chocolate brown", CHOCOLATE_BROWN, (65.0, 25.0, 0.0, 1.0);
        "wine red", WINE_RED, (123.0, 3.0, 35.0, 1.0);
        "neon blue", NEON_BLUE, (4.0, 217.0, 255.0, 1.0);
        "dirty green", DIRTY_GREEN, (102.0, 126.0, 44.0, 1.0);
        "light tan", LIGHT_TAN, (251.0, 238.0, 172.0, 1.0);
        "ice blue", ICE_BLUE, (215.0, 255.0, 254.0, 1.0);
        "cadet blue", CADET_BLUE, (78.0, 116.0, 150.0, 1.0);
        "dark mauve", DARK_MAUVE, (135.0, 76.0, 98.0, 1.0);
        "very light blue", VERY_LIGHT_BLUE, (213.0, 255.0, 255.0, 1.0);
        "grey purple", GREY_PURPLE, (130.0, 109.0, 140.0, 1.0);
        "pastel pink", PASTEL_PINK, (255.0, 186.0, 205.0, 1.0);
        "very light green", VERY_LIGHT_GREEN, (209.0, 255.0, 189.0, 1.0);
        "dark sky blue", DARK_SKY_BLUE, (68.0, 142.0, 228.0, 1.0);
        "evergreen", EVERGREEN, (5.0, 71.0, 42.0, 1.0);
        "dull pink", DULL_PINK, (213.0, 134.0, 157.0, 1.0);
        "aubergine", AUBERGINE, (61.0, 7.0, 52.0, 1.0);
        "mahogany", MAHOGANY, (74.0, 1.0, 0.0, 1.0);
        "reddish orange", REDDISH_ORANGE, (248.0, 72.0, 28.0, 1.0);
        "deep green", DEEP_GREEN, (2.0, 89.0, 15.0, 1.0);
        "vomit green", VOMIT_GREEN, (137.0, 162.0, 3.0, 1.0);
        "purple pink", PURPLE_PINK, (224.0, 63.0, 216.0, 1.0);
        "dusty pink", DUSTY_PINK, (213.0, 138.0, 148.0, 1.0);
        "faded green", FADED_GREEN, (123.0, 178.0, 116.0, 1.0);
        "camo green", CAMO_GREEN, (82.0, 101.0, 37.0, 1.0);
        "pinky purple", PINKY_PURPLE, (201.0, 76.0, 190.0, 1.0);
        "pink purple", PINK_PURPLE, (219.0, 75.0, 218.0, 1.0);
        "brownish red", BROWNISH_RED, (158.0, 54.0, 35.0, 1.0);
        "dark rose", DARK_ROSE, (181.0, 72.0, 93.0, 1.0);
        "mud", MUD, (115.0, 92.0, 18.0, 1.0);
        "brownish", BROWNISH, (156.0, 109.0, 87.0, 1.0);
        "emerald green", EMERALD_GREEN, (2.0, 143.0, 30.0, 1.0);
        "pale brown", PALE_BROWN, (177.0, 145.0, 110.0, 1.0);
        "dull blue", DULL_BLUE, (73.0, 117.0, 156.0, 1.0);
        "burnt umber", BURNT_UMBER, (160.0, 69.0, 14.0, 1.0);
        "medium green", MEDIUM_GREEN, (57.0, 173.0, 72.0, 1.0);
        "clay", CLAY, (182.0, 106.0, 80.0, 1.0);
        "light aqua", LIGHT_AQUA, (140.0, 255.0, 219.0, 1.0);
        "light olive green", LIGHT_OLIVE_GREEN, (164.0, 190.0, 92.0, 1.0);
        "brownish orange", BROWNISH_ORANGE, (203.0, 119.0, 35.0, 1.0);
        "dark aqua", DARK_AQUA, (5.0, 105.0, 107.0, 1.0);
        "purplish pink", PURPLISH_PINK, (206.0, 93.0, 174.0, 1.0);
        "dark salmon", DARK_SALMON, (200.0, 90.0, 83.0, 1.0);
        "greenish grey", GREENISH_GREY, (150.0, 174.0, 141.0, 1.0);
        "jade", JADE, (31.0, 167.0, 116.0, 1.0);
        "ugly green", UGLY_GREEN, (122.0, 151.0, 3.0, 1.0);
        "dark beige", DARK_BEIGE, (172.0, 147.0, 98.0, 1.0);
        "emerald", EMERALD, (1.0, 160.0, 73.0, 1.0);
        "pale red", PALE_RED, (217.0, 84.0, 77.0, 1.0);
        "light magenta", LIGHT_MAGENTA, (250.0, 95.0, 247.0, 1.0);
        "sky", SKY, (130.0, 202.0, 252.0, 1.0);
        "light cyan", LIGHT_CYAN, (172.0, 255.0, 252.0, 1.0);
        "yellow orange", YELLOW_ORANGE, (252.0, 176.0, 1.0, 1.0);
        "reddish purple", REDDISH_PURPLE, (145.0, 9.0, 81.0, 1.0);
        "reddish pink", REDDISH_PINK, (254.0, 44.0, 84.0, 1.0);
        "orchid", ORCHID, (200.0, 117.0, 196.0, 1.0);
        "dirty yellow", DIRTY_YELLOW, (205.0, 197.0, 10.0, 1.0);
        "orange red", ORANGE_RED, (253.0, 65.0, 30.0, 1.0);
        "deep red", DEEP_RED, (154.0, 2.0, 0.0, 1.0);
        "orange brown", ORANGE_BROWN, (190.0, 100.0, 0.0, 1.0);
        "cobalt blue", COBALT_BLUE, (3.0, 10.0, 167.0, 1.0);
        "neon pink", NEON_PINK, (254.0, 1.0, 154.0, 1.0);
        "rose pink", ROSE_PINK, (247.0, 135.0, 154.0, 1.0);
        "greyish purple", GREYISH_PURPLE, (136.0, 113.0, 145.0, 1.0);
        "raspberry", RASPBERRY, (176.0, 1.0, 73.0, 1.0);
        "aqua green", AQUA_GREEN, (18.0, 225.0, 147.0, 1.0);
        "salmon pink", SALMON_PINK, (254.0, 123.0, 124.0, 1.0);
        "tangerine", TANGERINE, (255.0, 148.0, 8.0, 1.0);
        "brownish green", BROWNISH_GREEN, (106.0, 110.0, 9.0, 1.0);
        "red brown", RED_BROWN, (139.0, 46.0, 22.0, 1.0);
        "greenish brown", GREENISH_BROWN, (105.0, 97.0, 18.0, 1.0);
        "pumpkin", PUMPKIN, (225.0, 119.0, 1.0, 1.0);
        "pine green", PINE_GREEN, (10.0, 72.0, 30.0, 1.0);
        "charcoal", CHARCOAL, (52.0, 56.0, 55.0, 1.0);
        "baby pink", BABY_PINK, (255.0, 183.0, 206.0, 1.0);
        "cornflower", CORNFLOWER, (106.0, 121.0, 247.0, 1.0);
        "blue violet", BLUE_VIOLET, (93.0, 6.0, 233.0, 1.0);
        "chocolate", CHOCOLATE, (61.0, 28.0, 2.0, 1.0);
        "greyish green", GREYISH_GREEN, (130.0, 166.0, 125.0, 1.0);
        "scarlet", SCARLET, (190.0, 1.0, 25.0, 1.0);
        "green yellow", GREEN_YELLOW, (201.0, 255.0, 39.0, 1.0);
        "dark olive", DARK_OLIVE, (55.0, 62.0, 2.0, 1.0);
        "sienna", SIENNA, (169.0, 86.0, 30.0, 1.0);
        "pastel purple", PASTEL_PURPLE, (202.0, 160.0, 255.0, 1.0);
        "terracotta", TERRACOTTA, (202.0, 102.0, 65.0, 1.0);
        "aqua blue", AQUA_BLUE, (2.0, 216.0, 233.0, 1.0);
        "sage green", SAGE_GREEN, (136.0, 179.0, 120.0, 1.0);
        "blood red", BLOOD_RED, (152.0, 0.0, 2.0, 1.0);
        "deep pink", DEEP_PINK, (203.0, 1.0, 98.0, 1.0);
        "grass", GRASS, (92.0, 172.0, 45.0, 1.0);
        "moss", MOSS, (118.0, 153.0, 88.0, 1.0);
        "pastel blue", PASTEL_BLUE, (162.0, 191.0, 254.0, 1.0);
        "bluish green", BLUISH_GREEN, (16.0, 166.0, 116.0, 1.0);
        "green blue", GREEN_BLUE, (6.0, 180.0, 139.0, 1.0);
        "dark tan", DARK_TAN, (175.0, 136.0, 74.0, 1.0);
        "greenish blue", GREENISH_BLUE, (11.0, 139.0, 135.0, 1.0);
        "pale orange", PALE_ORANGE, (255.0, 167.0, 86.0, 1.0);
        "vomit", VOMIT, (162.0, 164.0, 21.0, 1.0);
        "forrest green", FORREST_GREEN, (21.0, 68.0, 6.0, 1.0);
        "dark lavender", DARK_LAVENDER, (133.0, 103.0, 152.0, 1.0);
        "dark violet", DARK_VIOLET, (52.0, 1.0, 63.0, 1.0);
        "purple blue", PURPLE_BLUE, (99.0, 45.0, 233.0, 1.0);
        "dark cyan", DARK_CYAN, (10.0, 136.0, 138.0, 1.0);
        "olive drab", OLIVE_DRAB, (111.0, 118.0, 50.0, 1.0);
        "pinkish", PINKISH, (212.0, 106.0, 126.0, 1.0);
        "cobalt", COBALT, (30.0, 72.0, 143.0, 1.0);
        "neon purple", NEON_PURPLE, (188.0, 19.0, 254.0, 1.0);
        "light turquoise", LIGHT_TURQUOISE, (126.0, 244.0, 204.0, 1.0);
        "apple green", APPLE_GREEN, (118.0, 205.0, 38.0, 1.0);
        "dull green", DULL_GREEN, (116.0, 166.0, 98.0, 1.0);
        "wine", WINE, (128.0, 1.0, 63.0, 1.0);
        "powder blue", POWDER_BLUE, (177.0, 209.0, 252.0, 1.0);
        "off white", OFF_WHITE, (255.0, 255.0, 228.0, 1.0);
        "electric blue", ELECTRIC_BLUE, (6.0, 82.0, 255.0, 1.0);
        "dark turquoise", DARK_TURQUOISE, (4.0, 92.0, 90.0, 1.0);
        "blue purple", BLUE_PURPLE, (87.0, 41.0, 206.0, 1.0);
        "azure", AZURE, (6.0, 154.0, 243.0, 1.0);
        "bright red", BRIGHT_RED, (255.0, 0.0, 13.0, 1.0);
        "pinkish red", PINKISH_RED, (241.0, 12.0, 69.0, 1.0);
        "cornflower blue", CORNFLOWER_BLUE, (81.0, 112.0, 215.0, 1.0);
        "light olive", LIGHT_OLIVE, (172.0, 191.0, 105.0, 1.0);
        "grape", GRAPE, (108.0, 52.0, 97.0, 1.0);
        "greyish blue", GREYISH_BLUE, (94.0, 129.0, 157.0, 1.0);
        "purplish blue", PURPLISH_BLUE, (96.0, 30.0, 249.0, 1.0);
        "yellowish green", YELLOWISH_GREEN, (176.0, 221.0, 22.0, 1.0);
        "greenish yellow", GREENISH_YELLOW, (205.0, 253.0, 2.0, 1.0);
        "medium blue", MEDIUM_BLUE, (44.0, 111.0, 187.0, 1.0);
        "dusty rose", DUSTY_ROSE, (192.0, 115.0, 122.0, 1.0);
        "light violet", LIGHT_VIOLET, (214.0, 180.0, 252.0, 1.0);
        "midnight blue", MIDNIGHT_BLUE, (2.0, 0.0, 53.0, 1.0);
        "bluish purple", BLUISH_PURPLE, (112.0, 59.0, 231.0, 1.0);
        "red orange", RED_ORANGE, (253.0, 60.0, 6.0, 1.0);
        "dark magenta", DARK_MAGENTA, (150.0, 0.0, 86.0, 1.0);
        "greenish", GREENISH, (64.0, 163.0, 104.0, 1.0);
        "ocean blue", OCEAN_BLUE, (3.0, 113.0, 156.0, 1.0);
        "coral", CORAL, (252.0, 90.0, 80.0, 1.0);
        "cream", CREAM, (255.0, 255.0, 194.0, 1.0);
        "reddish brown", REDDISH_BROWN, (127.0, 43.0, 10.0, 1.0);
        "burnt sienna", BURNT_SIENNA, (176.0, 78.0, 15.0, 1.0);
        "brick", BRICK, (160.0, 54.0, 35.0, 1.0);
        "sage", SAGE, (135.0, 174.0, 115.0, 1.0);
        "grey green", GREY_GREEN, (120.0, 155.0, 115.0, 1.0);
        "robin's egg blue", ROBINS_EGG_BLUE, (152.0, 239.0, 249.0, 1.0);
        "moss green", MOSS_GREEN, (101.0, 139.0, 56.0, 1.0);
        "steel blue", STEEL_BLUE, (90.0, 125.0, 154.0, 1.0);
        "eggplant", EGGPLANT, (56.0, 8.0, 53.0, 1.0);
        "light yellow", LIGHT_YELLOW, (255.0, 254.0, 122.0, 1.0);
        "leaf green", LEAF_GREEN, (92.0, 169.0, 4.0, 1.0);
        "light grey", LIGHT_GREY, (216.0, 220.0, 214.0, 1.0);
        "puke", PUKE, (165.0, 165.0, 2.0, 1.0);
        "pinkish purple", PINKISH_PURPLE, (214.0, 72.0, 215.0, 1.0);
        "sea blue", SEA_BLUE, (4.0, 116.0, 149.0, 1.0);
        "pale purple", PALE_PURPLE, (183.0, 144.0, 212.0, 1.0);
        "slate blue", SLATE_BLUE, (91.0, 124.0, 153.0, 1.0);
        "blue grey", BLUE_GREY, (96.0, 124.0, 142.0, 1.0);
        "hunter green", HUNTER_GREEN, (11.0, 64.0, 8.0, 1.0);
        "fuchsia", FUCHSIA, (237.0, 13.0, 217.0, 1.0);
        "crimson", CRIMSON, (140.0, 0.0, 15.0, 1.0);
        "pale yellow", PALE_YELLOW, (255.0, 255.0, 132.0, 1.0);
        "ochre", OCHRE, (191.0, 144.0, 5.0, 1.0);
        "mustard yellow", MUSTARD_YELLOW, (210.0, 189.0, 10.0, 1.0);
        "light red", LIGHT_RED, (255.0, 71.0, 76.0, 1.0);
        "cerulean", CERULEAN, (4.0, 133.0, 209.0, 1.0);
        "pale pink", PALE_PINK, (255.0, 207.0, 220.0, 1.0);
        "deep blue", DEEP_BLUE, (4.0, 2.0, 115.0, 1.0);
        "rust", RUST, (168.0, 60.0, 9.0, 1.0);
        "light teal", LIGHT_TEAL, (144.0, 228.0, 193.0, 1.0);
        "slate", SLATE, (81.0, 101.0, 114.0, 1.0);
        "goldenrod", GOLDENROD, (250.0, 194.0, 5.0, 1.0);
        "dark yellow", DARK_YELLOW, (213.0, 182.0, 10.0, 1.0);
        "dark grey", DARK_GREY, (54.0, 55.0, 55.0, 1.0);
        "army green", ARMY_GREEN, (75.0, 93.0, 22.0, 1.0);
        "grey blue", GREY_BLUE, (107.0, 139.0, 164.0, 1.0);
        "seafoam", SEAFOAM, (128.0, 249.0, 173.0, 1.0);
        "puce", PUCE, (165.0, 126.0, 82.0, 1.0);
        "spring green", SPRING_GREEN, (169.0, 249.0, 113.0, 1.0);
        "dark orange", DARK_ORANGE, (198.0, 81.0, 2.0, 1.0);
        "sand", SAND, (226.0, 202.0, 118.0, 1.0);
        "pastel green", PASTEL_GREEN, (176.0, 255.0, 157.0, 1.0);
        "mint", MINT, (159.0, 254.0, 176.0, 1.0);
        "light orange", LIGHT_ORANGE, (253.0, 170.0, 72.0, 1.0);
        "bright pink", BRIGHT_PINK, (254.0, 1.0, 177.0, 1.0);
        "chartreuse", CHARTREUSE, (193.0, 248.0, 10.0, 1.0);
        "deep purple", DEEP_PURPLE, (54.0, 1.0, 63.0, 1.0);
        "dark brown", DARK_BROWN, (52.0, 28.0, 2.0, 1.0);
        "taupe", TAUPE, (185.0, 162.0, 129.0, 1.0);
        "pea green", PEA_GREEN, (142.0, 171.0, 18.0, 1.0);
        "puke green", PUKE_GREEN, (154.0, 174.0, 7.0, 1.0);
        "kelly green", KELLY_GREEN, (2.0, 171.0, 46.0, 1.0);
        "seafoam green", SEAFOAM_GREEN, (122.0, 249.0, 171.0, 1.0);
        "blue green", BLUE_GREEN, (19.0, 126.0, 109.0, 1.0);
        "khaki", KHAKI, (170.0, 166.0, 98.0, 1.0);
        "burgundy", BURGUNDY, (97.0, 0.0, 35.0, 1.0);
        "dark teal", DARK_TEAL, (1.0, 77.0, 78.0, 1.0);
        "brick red", BRICK_RED, (143.0, 20.0, 2.0, 1.0);
        "royal purple", ROYAL_PURPLE, (75.0, 0.0, 110.0, 1.0);
        "plum", PLUM, (88.0, 15.0, 65.0, 1.0);
        "mint green", MINT_GREEN, (143.0, 255.0, 159.0, 1.0);
        "gold", GOLD, (219.0, 180.0, 12.0, 1.0);
        "baby blue", BABY_BLUE, (162.0, 207.0, 254.0, 1.0);
        "yellow green", YELLOW_GREEN, (192.0, 251.0, 45.0, 1.0);
        "bright purple", BRIGHT_PURPLE, (190.0, 3.0, 253.0, 1.0);
        "dark red", DARK_RED, (132.0, 0.0, 0.0, 1.0);
        "pale blue", PALE_BLUE, (208.0, 254.0, 254.0, 1.0);
        "grass green", GRASS_GREEN, (63.0, 155.0, 11.0, 1.0);
        "navy", NAVY, (1.0, 21.0, 62.0, 1.0);
        "aquamarine", AQUAMARINE, (4.0, 216.0, 178.0, 1.0);
        "burnt orange", BURNT_ORANGE, (192.0, 78.0, 1.0, 1.0);
        "neon green", NEON_GREEN, (12.0, 255.0, 12.0, 1.0);
        "bright blue", BRIGHT_BLUE, (1.0, 101.0, 252.0, 1.0);
        "rose", ROSE, (207.0, 98.0, 117.0, 1.0);
        "light pink", LIGHT_PINK, (255.0, 209.0, 223.0, 1.0);
        "mustard", MUSTARD, (206.0, 179.0, 1.0, 1.0);
        "indigo", INDIGO, (56.0, 2.0, 130.0, 1.0);
        "lime", LIME, (170.0, 255.0, 50.0, 1.0);
        "sea green", SEA_GREEN, (83.0, 252.0, 161.0, 1.0);
        "periwinkle", PERIWINKLE, (142.0, 130.0, 254.0, 1.0);
        "dark pink", DARK_PINK, (203.0, 65.0, 107.0, 1.0);
        "olive green", OLIVE_GREEN, (103.0, 122.0, 4.0, 1.0);
        "peach", PEACH, (255.0, 176.0, 124.0, 1.0);
        "pale green", PALE_GREEN, (199.0, 253.0, 181.0, 1.0);
        "light brown", LIGHT_BROWN, (173.0, 129.0, 80.0, 1.0);
        "hot pink", HOT_PINK, (255.0, 2.0, 141.0, 1.0);
        "lilac", LILAC, (206.0, 162.0, 253.0, 1.0);
        "navy blue", NAVY_BLUE, (0.0, 17.0, 70.0, 1.0);
        "royal blue", ROYAL_BLUE, (5.0, 4.0, 170.0, 1.0);
        "beige", BEIGE, (230.0, 218.0, 166.0, 1.0);
        "salmon", SALMON, (255.0, 121.0, 108.0, 1.0);
        "olive", OLIVE, (110.0, 117.0, 14.0, 1.0);
        "maroon", MAROON, (101.0, 0.0, 33.0, 1.0);
        "bright green", BRIGHT_GREEN, (1.0, 255.0, 7.0, 1.0);
        "dark purple", DARK_PURPLE, (53.0, 6.0, 62.0, 1.0);
        "mauve", MAUVE, (174.0, 113.0, 129.0, 1.0);
        "forest green", FOREST_GREEN, (6.0, 71.0, 12.0, 1.0);
        "aqua", AQUA, (19.0, 234.0, 201.0, 1.0);
        "cyan", CYAN, (0.0, 255.0, 255.0, 1.0);
        "tan", TAN, (209.0, 178.0, 111.0, 1.0);
        "dark blue", DARK_BLUE, (0.0, 3.0, 91.0, 1.0);
        "lavender", LAVENDER, (199.0, 159.0, 239.0, 1.0);
        "turquoise", TURQUOISE, (6.0, 194.0, 172.0, 1.0);
        "dark green", DARK_GREEN, (3.0, 53.0, 0.0, 1.0);
        "violet", VIOLET, (154.0, 14.0, 234.0, 1.0);
        "light purple", LIGHT_PURPLE, (191.0, 119.0, 246.0, 1.0);
        "lime green", LIME_GREEN, (137.0, 254.0, 5.0, 1.0);
    }
}