diff --git a/image_colour_sum/.gitignore b/image_colour_sum/.gitignore new file mode 100644 index 0000000..80aca69 --- /dev/null +++ b/image_colour_sum/.gitignore @@ -0,0 +1,3 @@ +/target +Cargo.lock +*~ diff --git a/image_colour_sum/Cargo.toml b/image_colour_sum/Cargo.toml new file mode 100644 index 0000000..f08510a --- /dev/null +++ b/image_colour_sum/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "image_colour_sum" +version = "0.1.0" +edition = "2021" +default-run = "image_colour_sum" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +image = "0.24.6" diff --git a/image_colour_sum/resources/css_rgb.txt b/image_colour_sum/resources/css_rgb.txt new file mode 100644 index 0000000..3edb141 --- /dev/null +++ b/image_colour_sum/resources/css_rgb.txt @@ -0,0 +1,151 @@ +# Mozilla CSS Named Colours +# https://developer.mozilla.org/en-US/docs/Web/CSS/named-color +# Removed Transpare and the "also known as" ones +aliceblue #f0f8ff +antiquewhite #faebd7 +aqua #00ffff +aquamarine #7fffd4 +azure #f0ffff +beige #f5f5dc +bisque #ffe4c4 +black #000000 +blanchedalmond #ffebcd +blue #0000ff +blueviolet #8a2be2 +brown #a52a2a +burlywood #deb887 +cadetblue #5f9ea0 +chartreuse #7fff00 +chocolate #d2691e +coral #ff7f50 +cornflowerblue #6495ed +cornsilk #fff8dc +crimson #dc143c +cyan #00ffff +darkblue #00008b +darkcyan #008b8b +darkgoldenrod #b8860b +darkgray #a9a9a9 +darkgreen #006400 +darkgrey #a9a9a9 +darkkhaki #bdb76b +darkmagenta #8b008b +darkolivegreen #556b2f +darkorange #ff8c00 +darkorchid #9932cc +darkred #8b0000 +darksalmon #e9967a +darkseagreen #8fbc8f +darkslateblue #483d8b +darkslategray #2f4f4f +darkslategrey #2f4f4f +darkturquoise #00ced1 +darkviolet #9400d3 +deeppink #ff1493 +deepskyblue #00bfff +dimgray #696969 +dimgrey #696969 +dodgerblue #1e90ff +firebrick #b22222 +floralwhite #fffaf0 +forestgreen #228b22 +fuchsia #ff00ff +gainsboro #dcdcdc +ghostwhite #f8f8ff +gold #ffd700 +goldenrod #daa520 +gray #808080 +green #008000 +greenyellow #adff2f +grey #808080 +honeydew #f0fff0 +hotpink #ff69b4 +indianred #cd5c5c +indigo #4b0082 +ivory #fffff0 +khaki #f0e68c +lavender #e6e6fa +lavenderblush #fff0f5 +lawngreen #7cfc00 +lemonchiffon #fffacd +lightblue #add8e6 +lightcoral #f08080 +lightcyan #e0ffff +lightgoldenrodyellow #fafad2 +lightgray #d3d3d3 +lightgreen #90ee90 +lightgrey #d3d3d3 +lightpink #ffb6c1 +lightsalmon #ffa07a +lightseagreen #20b2aa +lightskyblue #87cefa +lightslategray #778899 +lightslategrey #778899 +lightsteelblue #b0c4de +lightyellow #ffffe0 +lime #00ff00 +limegreen #32cd32 +linen #faf0e6 +magenta #ff00ff +maroon #800000 +mediumaquamarine #66cdaa +mediumblue #0000cd +mediumorchid #ba55d3 +mediumpurple #9370db +mediumseagreen #3cb371 +mediumslateblue #7b68ee +mediumspringgreen #00fa9a +mediumturquoise #48d1cc +mediumvioletred #c71585 +midnightblue #191970 +mintcream #f5fffa +mistyrose #ffe4e1 +moccasin #ffe4b5 +navajowhite #ffdead +navy #000080 +oldlace #fdf5e6 +olive #808000 +olivedrab #6b8e23 +orange #ffa500 +orangered #ff4500 +orchid #da70d6 +palegoldenrod #eee8aa +palegreen #98fb98 +paleturquoise #afeeee +palevioletred #db7093 +papayawhip #ffefd5 +peachpuff #ffdab9 +peru #cd853f +pink #ffc0cb +plum #dda0dd +powderblue #b0e0e6 +purple #800080 +rebeccapurple #663399 +red #ff0000 +rosybrown #bc8f8f +royalblue #4169e1 +saddlebrown #8b4513 +salmon #fa8072 +sandybrown #f4a460 +seagreen #2e8b57 +seashell #fff5ee +sienna #a0522d +silver #c0c0c0 +skyblue #87ceeb +slateblue #6a5acd +slategray #708090 +slategrey #708090 +snow #fffafa +springgreen #00ff7f +steelblue #4682b4 +tan #d2b48c +teal #008080 +thistle #d8bfd8 +tomato #ff6347 +turquoise #40e0d0 +violet #ee82ee +wheat #f5deb3 +white #ffffff +whitesmoke #f5f5f5 +yellow #ffff00 +yellowgreen #9acd32 diff --git a/image_colour_sum/resources/pexels-erik-karits-3761421.jpg b/image_colour_sum/resources/pexels-erik-karits-3761421.jpg new file mode 100644 index 0000000..38e0e4b Binary files /dev/null and b/image_colour_sum/resources/pexels-erik-karits-3761421.jpg differ diff --git a/image_colour_sum/resources/pexels-scott-webb-137594.jpg b/image_colour_sum/resources/pexels-scott-webb-137594.jpg new file mode 100644 index 0000000..cdb7fa9 Binary files /dev/null and b/image_colour_sum/resources/pexels-scott-webb-137594.jpg differ diff --git a/image_colour_sum/resources/pexels-steve-johnson-1070536.jpg b/image_colour_sum/resources/pexels-steve-johnson-1070536.jpg new file mode 100644 index 0000000..75b4ffe Binary files /dev/null and b/image_colour_sum/resources/pexels-steve-johnson-1070536.jpg differ diff --git a/image_colour_sum/resources/x11_rgb.txt b/image_colour_sum/resources/x11_rgb.txt new file mode 100644 index 0000000..ffa2428 --- /dev/null +++ b/image_colour_sum/resources/x11_rgb.txt @@ -0,0 +1,783 @@ +# From https://gitlab.freedesktop.org/xorg/app/rgb/raw/master/rgb.txt +255 250 250 snow +248 248 255 ghost white +248 248 255 GhostWhite +245 245 245 white smoke +245 245 245 WhiteSmoke +220 220 220 gainsboro +255 250 240 floral white +255 250 240 FloralWhite +253 245 230 old lace +253 245 230 OldLace +250 240 230 linen +250 235 215 antique white +250 235 215 AntiqueWhite +255 239 213 papaya whip +255 239 213 PapayaWhip +255 235 205 blanched almond +255 235 205 BlanchedAlmond +255 228 196 bisque +255 218 185 peach puff +255 218 185 PeachPuff +255 222 173 navajo white +255 222 173 NavajoWhite +255 228 181 moccasin +255 248 220 cornsilk +255 255 240 ivory +255 250 205 lemon chiffon +255 250 205 LemonChiffon +255 245 238 seashell +240 255 240 honeydew +245 255 250 mint cream +245 255 250 MintCream +240 255 255 azure +240 248 255 alice blue +240 248 255 AliceBlue +230 230 250 lavender +255 240 245 lavender blush +255 240 245 LavenderBlush +255 228 225 misty rose +255 228 225 MistyRose +255 255 255 white + 0 0 0 black + 47 79 79 dark slate gray + 47 79 79 DarkSlateGray + 47 79 79 dark slate grey + 47 79 79 DarkSlateGrey +105 105 105 dim gray +105 105 105 DimGray +105 105 105 dim grey +105 105 105 DimGrey +112 128 144 slate gray +112 128 144 SlateGray +112 128 144 slate grey +112 128 144 SlateGrey +119 136 153 light slate gray +119 136 153 LightSlateGray +119 136 153 light slate grey +119 136 153 LightSlateGrey +190 190 190 gray +190 190 190 grey +190 190 190 x11 gray +190 190 190 X11Gray +190 190 190 x11 grey +190 190 190 X11Grey +128 128 128 web gray +128 128 128 WebGray +128 128 128 web grey +128 128 128 WebGrey +211 211 211 light grey +211 211 211 LightGrey +211 211 211 light gray +211 211 211 LightGray + 25 25 112 midnight blue + 25 25 112 MidnightBlue + 0 0 128 navy + 0 0 128 navy blue + 0 0 128 NavyBlue +100 149 237 cornflower blue +100 149 237 CornflowerBlue + 72 61 139 dark slate blue + 72 61 139 DarkSlateBlue +106 90 205 slate blue +106 90 205 SlateBlue +123 104 238 medium slate blue +123 104 238 MediumSlateBlue +132 112 255 light slate blue +132 112 255 LightSlateBlue + 0 0 205 medium blue + 0 0 205 MediumBlue + 65 105 225 royal blue + 65 105 225 RoyalBlue + 0 0 255 blue + 30 144 255 dodger blue + 30 144 255 DodgerBlue + 0 191 255 deep sky blue + 0 191 255 DeepSkyBlue +135 206 235 sky blue +135 206 235 SkyBlue +135 206 250 light sky blue +135 206 250 LightSkyBlue + 70 130 180 steel blue + 70 130 180 SteelBlue +176 196 222 light steel blue +176 196 222 LightSteelBlue +173 216 230 light blue +173 216 230 LightBlue +176 224 230 powder blue +176 224 230 PowderBlue +175 238 238 pale turquoise +175 238 238 PaleTurquoise + 0 206 209 dark turquoise + 0 206 209 DarkTurquoise + 72 209 204 medium turquoise + 72 209 204 MediumTurquoise + 64 224 208 turquoise + 0 255 255 cyan + 0 255 255 aqua +224 255 255 light cyan +224 255 255 LightCyan + 95 158 160 cadet blue + 95 158 160 CadetBlue +102 205 170 medium aquamarine +102 205 170 MediumAquamarine +127 255 212 aquamarine + 0 100 0 dark green + 0 100 0 DarkGreen + 85 107 47 dark olive green + 85 107 47 DarkOliveGreen +143 188 143 dark sea green +143 188 143 DarkSeaGreen + 46 139 87 sea green + 46 139 87 SeaGreen + 60 179 113 medium sea green + 60 179 113 MediumSeaGreen + 32 178 170 light sea green + 32 178 170 LightSeaGreen +152 251 152 pale green +152 251 152 PaleGreen + 0 255 127 spring green + 0 255 127 SpringGreen +124 252 0 lawn green +124 252 0 LawnGreen + 0 255 0 green + 0 255 0 lime + 0 255 0 x11 green + 0 255 0 X11Green + 0 128 0 web green + 0 128 0 WebGreen +127 255 0 chartreuse + 0 250 154 medium spring green + 0 250 154 MediumSpringGreen +173 255 47 green yellow +173 255 47 GreenYellow + 50 205 50 lime green + 50 205 50 LimeGreen +154 205 50 yellow green +154 205 50 YellowGreen + 34 139 34 forest green + 34 139 34 ForestGreen +107 142 35 olive drab +107 142 35 OliveDrab +189 183 107 dark khaki +189 183 107 DarkKhaki +240 230 140 khaki +238 232 170 pale goldenrod +238 232 170 PaleGoldenrod +250 250 210 light goldenrod yellow +250 250 210 LightGoldenrodYellow +255 255 224 light yellow +255 255 224 LightYellow +255 255 0 yellow +255 215 0 gold +238 221 130 light goldenrod +238 221 130 LightGoldenrod +218 165 32 goldenrod +184 134 11 dark goldenrod +184 134 11 DarkGoldenrod +188 143 143 rosy brown +188 143 143 RosyBrown +205 92 92 indian red +205 92 92 IndianRed +139 69 19 saddle brown +139 69 19 SaddleBrown +160 82 45 sienna +205 133 63 peru +222 184 135 burlywood +245 245 220 beige +245 222 179 wheat +244 164 96 sandy brown +244 164 96 SandyBrown +210 180 140 tan +210 105 30 chocolate +178 34 34 firebrick +165 42 42 brown +233 150 122 dark salmon +233 150 122 DarkSalmon +250 128 114 salmon +255 160 122 light salmon +255 160 122 LightSalmon +255 165 0 orange +255 140 0 dark orange +255 140 0 DarkOrange +255 127 80 coral +240 128 128 light coral +240 128 128 LightCoral +255 99 71 tomato +255 69 0 orange red +255 69 0 OrangeRed +255 0 0 red +255 105 180 hot pink +255 105 180 HotPink +255 20 147 deep pink +255 20 147 DeepPink +255 192 203 pink +255 182 193 light pink +255 182 193 LightPink +219 112 147 pale violet red +219 112 147 PaleVioletRed +176 48 96 maroon +176 48 96 x11 maroon +176 48 96 X11Maroon +128 0 0 web maroon +128 0 0 WebMaroon +199 21 133 medium violet red +199 21 133 MediumVioletRed +208 32 144 violet red +208 32 144 VioletRed +255 0 255 magenta +255 0 255 fuchsia +238 130 238 violet +221 160 221 plum +218 112 214 orchid +186 85 211 medium orchid +186 85 211 MediumOrchid +153 50 204 dark orchid +153 50 204 DarkOrchid +148 0 211 dark violet +148 0 211 DarkViolet +138 43 226 blue violet +138 43 226 BlueViolet +160 32 240 purple +160 32 240 x11 purple +160 32 240 X11Purple +128 0 128 web purple +128 0 128 WebPurple +147 112 219 medium purple +147 112 219 MediumPurple +216 191 216 thistle +255 250 250 snow1 +238 233 233 snow2 +205 201 201 snow3 +139 137 137 snow4 +255 245 238 seashell1 +238 229 222 seashell2 +205 197 191 seashell3 +139 134 130 seashell4 +255 239 219 AntiqueWhite1 +238 223 204 AntiqueWhite2 +205 192 176 AntiqueWhite3 +139 131 120 AntiqueWhite4 +255 228 196 bisque1 +238 213 183 bisque2 +205 183 158 bisque3 +139 125 107 bisque4 +255 218 185 PeachPuff1 +238 203 173 PeachPuff2 +205 175 149 PeachPuff3 +139 119 101 PeachPuff4 +255 222 173 NavajoWhite1 +238 207 161 NavajoWhite2 +205 179 139 NavajoWhite3 +139 121 94 NavajoWhite4 +255 250 205 LemonChiffon1 +238 233 191 LemonChiffon2 +205 201 165 LemonChiffon3 +139 137 112 LemonChiffon4 +255 248 220 cornsilk1 +238 232 205 cornsilk2 +205 200 177 cornsilk3 +139 136 120 cornsilk4 +255 255 240 ivory1 +238 238 224 ivory2 +205 205 193 ivory3 +139 139 131 ivory4 +240 255 240 honeydew1 +224 238 224 honeydew2 +193 205 193 honeydew3 +131 139 131 honeydew4 +255 240 245 LavenderBlush1 +238 224 229 LavenderBlush2 +205 193 197 LavenderBlush3 +139 131 134 LavenderBlush4 +255 228 225 MistyRose1 +238 213 210 MistyRose2 +205 183 181 MistyRose3 +139 125 123 MistyRose4 +240 255 255 azure1 +224 238 238 azure2 +193 205 205 azure3 +131 139 139 azure4 +131 111 255 SlateBlue1 +122 103 238 SlateBlue2 +105 89 205 SlateBlue3 + 71 60 139 SlateBlue4 + 72 118 255 RoyalBlue1 + 67 110 238 RoyalBlue2 + 58 95 205 RoyalBlue3 + 39 64 139 RoyalBlue4 + 0 0 255 blue1 + 0 0 238 blue2 + 0 0 205 blue3 + 0 0 139 blue4 + 30 144 255 DodgerBlue1 + 28 134 238 DodgerBlue2 + 24 116 205 DodgerBlue3 + 16 78 139 DodgerBlue4 + 99 184 255 SteelBlue1 + 92 172 238 SteelBlue2 + 79 148 205 SteelBlue3 + 54 100 139 SteelBlue4 + 0 191 255 DeepSkyBlue1 + 0 178 238 DeepSkyBlue2 + 0 154 205 DeepSkyBlue3 + 0 104 139 DeepSkyBlue4 +135 206 255 SkyBlue1 +126 192 238 SkyBlue2 +108 166 205 SkyBlue3 + 74 112 139 SkyBlue4 +176 226 255 LightSkyBlue1 +164 211 238 LightSkyBlue2 +141 182 205 LightSkyBlue3 + 96 123 139 LightSkyBlue4 +198 226 255 SlateGray1 +185 211 238 SlateGray2 +159 182 205 SlateGray3 +108 123 139 SlateGray4 +202 225 255 LightSteelBlue1 +188 210 238 LightSteelBlue2 +162 181 205 LightSteelBlue3 +110 123 139 LightSteelBlue4 +191 239 255 LightBlue1 +178 223 238 LightBlue2 +154 192 205 LightBlue3 +104 131 139 LightBlue4 +224 255 255 LightCyan1 +209 238 238 LightCyan2 +180 205 205 LightCyan3 +122 139 139 LightCyan4 +187 255 255 PaleTurquoise1 +174 238 238 PaleTurquoise2 +150 205 205 PaleTurquoise3 +102 139 139 PaleTurquoise4 +152 245 255 CadetBlue1 +142 229 238 CadetBlue2 +122 197 205 CadetBlue3 + 83 134 139 CadetBlue4 + 0 245 255 turquoise1 + 0 229 238 turquoise2 + 0 197 205 turquoise3 + 0 134 139 turquoise4 + 0 255 255 cyan1 + 0 238 238 cyan2 + 0 205 205 cyan3 + 0 139 139 cyan4 +151 255 255 DarkSlateGray1 +141 238 238 DarkSlateGray2 +121 205 205 DarkSlateGray3 + 82 139 139 DarkSlateGray4 +127 255 212 aquamarine1 +118 238 198 aquamarine2 +102 205 170 aquamarine3 + 69 139 116 aquamarine4 +193 255 193 DarkSeaGreen1 +180 238 180 DarkSeaGreen2 +155 205 155 DarkSeaGreen3 +105 139 105 DarkSeaGreen4 + 84 255 159 SeaGreen1 + 78 238 148 SeaGreen2 + 67 205 128 SeaGreen3 + 46 139 87 SeaGreen4 +154 255 154 PaleGreen1 +144 238 144 PaleGreen2 +124 205 124 PaleGreen3 + 84 139 84 PaleGreen4 + 0 255 127 SpringGreen1 + 0 238 118 SpringGreen2 + 0 205 102 SpringGreen3 + 0 139 69 SpringGreen4 + 0 255 0 green1 + 0 238 0 green2 + 0 205 0 green3 + 0 139 0 green4 +127 255 0 chartreuse1 +118 238 0 chartreuse2 +102 205 0 chartreuse3 + 69 139 0 chartreuse4 +192 255 62 OliveDrab1 +179 238 58 OliveDrab2 +154 205 50 OliveDrab3 +105 139 34 OliveDrab4 +202 255 112 DarkOliveGreen1 +188 238 104 DarkOliveGreen2 +162 205 90 DarkOliveGreen3 +110 139 61 DarkOliveGreen4 +255 246 143 khaki1 +238 230 133 khaki2 +205 198 115 khaki3 +139 134 78 khaki4 +255 236 139 LightGoldenrod1 +238 220 130 LightGoldenrod2 +205 190 112 LightGoldenrod3 +139 129 76 LightGoldenrod4 +255 255 224 LightYellow1 +238 238 209 LightYellow2 +205 205 180 LightYellow3 +139 139 122 LightYellow4 +255 255 0 yellow1 +238 238 0 yellow2 +205 205 0 yellow3 +139 139 0 yellow4 +255 215 0 gold1 +238 201 0 gold2 +205 173 0 gold3 +139 117 0 gold4 +255 193 37 goldenrod1 +238 180 34 goldenrod2 +205 155 29 goldenrod3 +139 105 20 goldenrod4 +255 185 15 DarkGoldenrod1 +238 173 14 DarkGoldenrod2 +205 149 12 DarkGoldenrod3 +139 101 8 DarkGoldenrod4 +255 193 193 RosyBrown1 +238 180 180 RosyBrown2 +205 155 155 RosyBrown3 +139 105 105 RosyBrown4 +255 106 106 IndianRed1 +238 99 99 IndianRed2 +205 85 85 IndianRed3 +139 58 58 IndianRed4 +255 130 71 sienna1 +238 121 66 sienna2 +205 104 57 sienna3 +139 71 38 sienna4 +255 211 155 burlywood1 +238 197 145 burlywood2 +205 170 125 burlywood3 +139 115 85 burlywood4 +255 231 186 wheat1 +238 216 174 wheat2 +205 186 150 wheat3 +139 126 102 wheat4 +255 165 79 tan1 +238 154 73 tan2 +205 133 63 tan3 +139 90 43 tan4 +255 127 36 chocolate1 +238 118 33 chocolate2 +205 102 29 chocolate3 +139 69 19 chocolate4 +255 48 48 firebrick1 +238 44 44 firebrick2 +205 38 38 firebrick3 +139 26 26 firebrick4 +255 64 64 brown1 +238 59 59 brown2 +205 51 51 brown3 +139 35 35 brown4 +255 140 105 salmon1 +238 130 98 salmon2 +205 112 84 salmon3 +139 76 57 salmon4 +255 160 122 LightSalmon1 +238 149 114 LightSalmon2 +205 129 98 LightSalmon3 +139 87 66 LightSalmon4 +255 165 0 orange1 +238 154 0 orange2 +205 133 0 orange3 +139 90 0 orange4 +255 127 0 DarkOrange1 +238 118 0 DarkOrange2 +205 102 0 DarkOrange3 +139 69 0 DarkOrange4 +255 114 86 coral1 +238 106 80 coral2 +205 91 69 coral3 +139 62 47 coral4 +255 99 71 tomato1 +238 92 66 tomato2 +205 79 57 tomato3 +139 54 38 tomato4 +255 69 0 OrangeRed1 +238 64 0 OrangeRed2 +205 55 0 OrangeRed3 +139 37 0 OrangeRed4 +255 0 0 red1 +238 0 0 red2 +205 0 0 red3 +139 0 0 red4 +255 20 147 DeepPink1 +238 18 137 DeepPink2 +205 16 118 DeepPink3 +139 10 80 DeepPink4 +255 110 180 HotPink1 +238 106 167 HotPink2 +205 96 144 HotPink3 +139 58 98 HotPink4 +255 181 197 pink1 +238 169 184 pink2 +205 145 158 pink3 +139 99 108 pink4 +255 174 185 LightPink1 +238 162 173 LightPink2 +205 140 149 LightPink3 +139 95 101 LightPink4 +255 130 171 PaleVioletRed1 +238 121 159 PaleVioletRed2 +205 104 137 PaleVioletRed3 +139 71 93 PaleVioletRed4 +255 52 179 maroon1 +238 48 167 maroon2 +205 41 144 maroon3 +139 28 98 maroon4 +255 62 150 VioletRed1 +238 58 140 VioletRed2 +205 50 120 VioletRed3 +139 34 82 VioletRed4 +255 0 255 magenta1 +238 0 238 magenta2 +205 0 205 magenta3 +139 0 139 magenta4 +255 131 250 orchid1 +238 122 233 orchid2 +205 105 201 orchid3 +139 71 137 orchid4 +255 187 255 plum1 +238 174 238 plum2 +205 150 205 plum3 +139 102 139 plum4 +224 102 255 MediumOrchid1 +209 95 238 MediumOrchid2 +180 82 205 MediumOrchid3 +122 55 139 MediumOrchid4 +191 62 255 DarkOrchid1 +178 58 238 DarkOrchid2 +154 50 205 DarkOrchid3 +104 34 139 DarkOrchid4 +155 48 255 purple1 +145 44 238 purple2 +125 38 205 purple3 + 85 26 139 purple4 +171 130 255 MediumPurple1 +159 121 238 MediumPurple2 +137 104 205 MediumPurple3 + 93 71 139 MediumPurple4 +255 225 255 thistle1 +238 210 238 thistle2 +205 181 205 thistle3 +139 123 139 thistle4 + 0 0 0 gray0 + 0 0 0 grey0 + 3 3 3 gray1 + 3 3 3 grey1 + 5 5 5 gray2 + 5 5 5 grey2 + 8 8 8 gray3 + 8 8 8 grey3 + 10 10 10 gray4 + 10 10 10 grey4 + 13 13 13 gray5 + 13 13 13 grey5 + 15 15 15 gray6 + 15 15 15 grey6 + 18 18 18 gray7 + 18 18 18 grey7 + 20 20 20 gray8 + 20 20 20 grey8 + 23 23 23 gray9 + 23 23 23 grey9 + 26 26 26 gray10 + 26 26 26 grey10 + 28 28 28 gray11 + 28 28 28 grey11 + 31 31 31 gray12 + 31 31 31 grey12 + 33 33 33 gray13 + 33 33 33 grey13 + 36 36 36 gray14 + 36 36 36 grey14 + 38 38 38 gray15 + 38 38 38 grey15 + 41 41 41 gray16 + 41 41 41 grey16 + 43 43 43 gray17 + 43 43 43 grey17 + 46 46 46 gray18 + 46 46 46 grey18 + 48 48 48 gray19 + 48 48 48 grey19 + 51 51 51 gray20 + 51 51 51 grey20 + 54 54 54 gray21 + 54 54 54 grey21 + 56 56 56 gray22 + 56 56 56 grey22 + 59 59 59 gray23 + 59 59 59 grey23 + 61 61 61 gray24 + 61 61 61 grey24 + 64 64 64 gray25 + 64 64 64 grey25 + 66 66 66 gray26 + 66 66 66 grey26 + 69 69 69 gray27 + 69 69 69 grey27 + 71 71 71 gray28 + 71 71 71 grey28 + 74 74 74 gray29 + 74 74 74 grey29 + 77 77 77 gray30 + 77 77 77 grey30 + 79 79 79 gray31 + 79 79 79 grey31 + 82 82 82 gray32 + 82 82 82 grey32 + 84 84 84 gray33 + 84 84 84 grey33 + 87 87 87 gray34 + 87 87 87 grey34 + 89 89 89 gray35 + 89 89 89 grey35 + 92 92 92 gray36 + 92 92 92 grey36 + 94 94 94 gray37 + 94 94 94 grey37 + 97 97 97 gray38 + 97 97 97 grey38 + 99 99 99 gray39 + 99 99 99 grey39 +102 102 102 gray40 +102 102 102 grey40 +105 105 105 gray41 +105 105 105 grey41 +107 107 107 gray42 +107 107 107 grey42 +110 110 110 gray43 +110 110 110 grey43 +112 112 112 gray44 +112 112 112 grey44 +115 115 115 gray45 +115 115 115 grey45 +117 117 117 gray46 +117 117 117 grey46 +120 120 120 gray47 +120 120 120 grey47 +122 122 122 gray48 +122 122 122 grey48 +125 125 125 gray49 +125 125 125 grey49 +127 127 127 gray50 +127 127 127 grey50 +130 130 130 gray51 +130 130 130 grey51 +133 133 133 gray52 +133 133 133 grey52 +135 135 135 gray53 +135 135 135 grey53 +138 138 138 gray54 +138 138 138 grey54 +140 140 140 gray55 +140 140 140 grey55 +143 143 143 gray56 +143 143 143 grey56 +145 145 145 gray57 +145 145 145 grey57 +148 148 148 gray58 +148 148 148 grey58 +150 150 150 gray59 +150 150 150 grey59 +153 153 153 gray60 +153 153 153 grey60 +156 156 156 gray61 +156 156 156 grey61 +158 158 158 gray62 +158 158 158 grey62 +161 161 161 gray63 +161 161 161 grey63 +163 163 163 gray64 +163 163 163 grey64 +166 166 166 gray65 +166 166 166 grey65 +168 168 168 gray66 +168 168 168 grey66 +171 171 171 gray67 +171 171 171 grey67 +173 173 173 gray68 +173 173 173 grey68 +176 176 176 gray69 +176 176 176 grey69 +179 179 179 gray70 +179 179 179 grey70 +181 181 181 gray71 +181 181 181 grey71 +184 184 184 gray72 +184 184 184 grey72 +186 186 186 gray73 +186 186 186 grey73 +189 189 189 gray74 +189 189 189 grey74 +191 191 191 gray75 +191 191 191 grey75 +194 194 194 gray76 +194 194 194 grey76 +196 196 196 gray77 +196 196 196 grey77 +199 199 199 gray78 +199 199 199 grey78 +201 201 201 gray79 +201 201 201 grey79 +204 204 204 gray80 +204 204 204 grey80 +207 207 207 gray81 +207 207 207 grey81 +209 209 209 gray82 +209 209 209 grey82 +212 212 212 gray83 +212 212 212 grey83 +214 214 214 gray84 +214 214 214 grey84 +217 217 217 gray85 +217 217 217 grey85 +219 219 219 gray86 +219 219 219 grey86 +222 222 222 gray87 +222 222 222 grey87 +224 224 224 gray88 +224 224 224 grey88 +227 227 227 gray89 +227 227 227 grey89 +229 229 229 gray90 +229 229 229 grey90 +232 232 232 gray91 +232 232 232 grey91 +235 235 235 gray92 +235 235 235 grey92 +237 237 237 gray93 +237 237 237 grey93 +240 240 240 gray94 +240 240 240 grey94 +242 242 242 gray95 +242 242 242 grey95 +245 245 245 gray96 +245 245 245 grey96 +247 247 247 gray97 +247 247 247 grey97 +250 250 250 gray98 +250 250 250 grey98 +252 252 252 gray99 +252 252 252 grey99 +255 255 255 gray100 +255 255 255 grey100 +169 169 169 dark grey +169 169 169 DarkGrey +169 169 169 dark gray +169 169 169 DarkGray + 0 0 139 dark blue + 0 0 139 DarkBlue + 0 139 139 dark cyan + 0 139 139 DarkCyan +139 0 139 dark magenta +139 0 139 DarkMagenta +139 0 0 dark red +139 0 0 DarkRed +144 238 144 light green +144 238 144 LightGreen +220 20 60 crimson + 75 0 130 indigo +128 128 0 olive +102 51 153 rebecca purple +102 51 153 RebeccaPurple +192 192 192 silver + 0 128 128 teal diff --git a/image_colour_sum/resources/xkcd_rgb.txt b/image_colour_sum/resources/xkcd_rgb.txt new file mode 100644 index 0000000..ed8c701 --- /dev/null +++ b/image_colour_sum/resources/xkcd_rgb.txt @@ -0,0 +1,950 @@ +# License: https://creativecommons.org/publicdomain/zero/1.0/ +cloudy blue #acc2d9 +dark pastel green #56ae57 +dust #b2996e +electric lime #a8ff04 +fresh green #69d84f +light eggplant #894585 +nasty green #70b23f +really light blue #d4ffff +tea #65ab7c +warm purple #952e8f +yellowish tan #fcfc81 +cement #a5a391 +dark grass green #388004 +dusty teal #4c9085 +grey teal #5e9b8a +macaroni and cheese #efb435 +pinkish tan #d99b82 +spruce #0a5f38 +strong blue #0c06f7 +toxic green #61de2a +windows blue #3778bf +blue blue #2242c7 +blue with a hint of purple #533cc6 +booger #9bb53c +bright sea green #05ffa6 +dark green blue #1f6357 +deep turquoise #017374 +green teal #0cb577 +strong pink #ff0789 +bland #afa88b +deep aqua #08787f +lavender pink #dd85d7 +light moss green #a6c875 +light seafoam green #a7ffb5 +olive yellow #c2b709 +pig pink #e78ea5 +deep lilac #966ebd +desert #ccad60 +dusty lavender #ac86a8 +purpley grey #947e94 +purply #983fb2 +candy pink #ff63e9 +light pastel green #b2fba5 +boring green #63b365 +kiwi green #8ee53f +light grey green #b7e1a1 +orange pink #ff6f52 +tea green #bdf8a3 +very light brown #d3b683 +egg shell #fffcc4 +eggplant purple #430541 +powder pink #ffb2d0 +reddish grey #997570 +baby shit brown #ad900d +liliac #c48efd +stormy blue #507b9c +ugly brown #7d7103 +custard #fffd78 +darkish pink #da467d +deep brown #410200 +greenish beige #c9d179 +manilla #fffa86 +off blue #5684ae +battleship grey #6b7c85 +browny green #6f6c0a +bruise #7e4071 +kelley green #009337 +sickly yellow #d0e429 +sunny yellow #fff917 +azul #1d5dec +darkgreen #054907 +green/yellow #b5ce08 +lichen #8fb67b +light light green #c8ffb0 +pale gold #fdde6c +sun yellow #ffdf22 +tan green #a9be70 +burple #6832e3 +butterscotch #fdb147 +toupe #c7ac7d +dark cream #fff39a +indian red #850e04 +light lavendar #efc0fe +poison green #40fd14 +baby puke green #b6c406 +bright yellow green #9dff00 +charcoal grey #3c4142 +squash #f2ab15 +cinnamon #ac4f06 +light pea green #c4fe82 +radioactive green #2cfa1f +raw sienna #9a6200 +baby purple #ca9bf7 +cocoa #875f42 +light royal blue #3a2efe +orangeish #fd8d49 +rust brown #8b3103 +sand brown #cba560 +swamp #698339 +tealish green #0cdc73 +burnt siena #b75203 +camo #7f8f4e +dusk blue #26538d +fern #63a950 +old rose #c87f89 +pale light green #b1fc99 +peachy pink #ff9a8a +rosy pink #f6688e +light bluish green #76fda8 +light bright green #53fe5c +light neon green #4efd54 +light seafoam #a0febf +tiffany blue #7bf2da +washed out green #bcf5a6 +browny orange #ca6b02 +nice blue #107ab0 +sapphire #2138ab +greyish teal #719f91 +orangey yellow #fdb915 +parchment #fefcaf +straw #fcf679 +very dark brown #1d0200 +terracota #cb6843 +ugly blue #31668a +clear blue #247afd +creme #ffffb6 +foam green #90fda9 +grey/green #86a17d +light gold #fddc5c +seafoam blue #78d1b6 +topaz #13bbaf +violet pink #fb5ffc +wintergreen #20f986 +yellow tan #ffe36e +dark fuchsia #9d0759 +indigo blue #3a18b1 +light yellowish green #c2ff89 +pale magenta #d767ad +rich purple #720058 +sunflower yellow #ffda03 +green/blue #01c08d +leather #ac7434 +racing green #014600 +vivid purple #9900fa +dark royal blue #02066f +hazel #8e7618 +muted pink #d1768f +booger green #96b403 +canary #fdff63 +cool grey #95a3a6 +dark taupe #7f684e +darkish purple #751973 +true green #089404 +coral pink #ff6163 +dark sage #598556 +dark slate blue #214761 +flat blue #3c73a8 +mushroom #ba9e88 +rich blue #021bf9 +dirty purple #734a65 +greenblue #23c48b +icky green #8fae22 +light khaki #e6f2a2 +warm blue #4b57db +dark hot pink #d90166 +deep sea blue #015482 +carmine #9d0216 +dark yellow green #728f02 +pale peach #ffe5ad +plum purple #4e0550 +golden rod #f9bc08 +neon red #ff073a +old pink #c77986 +very pale blue #d6fffe +blood orange #fe4b03 +grapefruit #fd5956 +sand yellow #fce166 +clay brown #b2713d +dark blue grey #1f3b4d +flat green #699d4c +light green blue #56fca2 +warm pink #fb5581 +dodger blue #3e82fc +gross green #a0bf16 +ice #d6fffa +metallic blue #4f738e +pale salmon #ffb19a +sap green #5c8b15 +algae #54ac68 +bluey grey #89a0b0 +greeny grey #7ea07a +highlighter green #1bfc06 +light light blue #cafffb +light mint #b6ffbb +raw umber #a75e09 +vivid blue #152eff +deep lavender #8d5eb7 +dull teal #5f9e8f +light greenish blue #63f7b4 +mud green #606602 +pinky #fc86aa +red wine #8c0034 +shit green #758000 +tan brown #ab7e4c +darkblue #030764 +rosa #fe86a4 +lipstick #d5174e +pale mauve #fed0fc +claret #680018 +dandelion #fedf08 +orangered #fe420f +poop green #6f7c00 +ruby #ca0147 +dark #1b2431 +greenish turquoise #00fbb0 +pastel red #db5856 +piss yellow #ddd618 +bright cyan #41fdfe +dark coral #cf524e +algae green #21c36f +darkish red #a90308 +reddy brown #6e1005 +blush pink #fe828c +camouflage green #4b6113 +lawn green #4da409 +putty #beae8a +vibrant blue #0339f8 +dark sand #a88f59 +purple/blue #5d21d0 +saffron #feb209 +twilight #4e518b +warm brown #964e02 +bluegrey #85a3b2 +bubble gum pink #ff69af +duck egg blue #c3fbf4 +greenish cyan #2afeb7 +petrol #005f6a +royal #0c1793 +butter #ffff81 +dusty orange #f0833a +off yellow #f1f33f +pale olive green #b1d27b +orangish #fc824a +leaf #71aa34 +light blue grey #b7c9e2 +dried blood #4b0101 +lightish purple #a552e6 +rusty red #af2f0d +lavender blue #8b88f8 +light grass green #9af764 +light mint green #a6fbb2 +sunflower #ffc512 +velvet #750851 +brick orange #c14a09 +lightish red #fe2f4a +pure blue #0203e2 +twilight blue #0a437a +violet red #a50055 +yellowy brown #ae8b0c +carnation #fd798f +muddy yellow #bfac05 +dark seafoam green #3eaf76 +deep rose #c74767 +dusty red #b9484e +grey/blue #647d8e +lemon lime #bffe28 +purple/pink #d725de +brown yellow #b29705 +purple brown #673a3f +wisteria #a87dc2 +banana yellow #fafe4b +lipstick red #c0022f +water blue #0e87cc +brown grey #8d8468 +vibrant purple #ad03de +baby green #8cff9e +barf green #94ac02 +eggshell blue #c4fff7 +sandy yellow #fdee73 +cool green #33b864 +pale #fff9d0 +blue/grey #758da3 +hot magenta #f504c9 +greyblue #77a1b5 +purpley #8756e4 +baby shit green #889717 +brownish pink #c27e79 +dark aquamarine #017371 +diarrhea #9f8303 +light mustard #f7d560 +pale sky blue #bdf6fe +turtle green #75b84f +bright olive #9cbb04 +dark grey blue #29465b +greeny brown #696006 +lemon green #adf802 +light periwinkle #c1c6fc +seaweed green #35ad6b +sunshine yellow #fffd37 +ugly purple #a442a0 +medium pink #f36196 +puke brown #947706 +very light pink #fff4f2 +viridian #1e9167 +bile #b5c306 +faded yellow #feff7f +very pale green #cffdbc +vibrant green #0add08 +bright lime #87fd05 +spearmint #1ef876 +light aquamarine #7bfdc7 +light sage #bcecac +yellowgreen #bbf90f +baby poo #ab9004 +dark seafoam #1fb57a +deep teal #00555a +heather #a484ac +rust orange #c45508 +dirty blue #3f829d +fern green #548d44 +bright lilac #c95efb +weird green #3ae57f +peacock blue #016795 +avocado green #87a922 +faded orange #f0944d +grape purple #5d1451 +hot green #25ff29 +lime yellow #d0fe1d +mango #ffa62b +shamrock #01b44c +bubblegum #ff6cb5 +purplish brown #6b4247 +vomit yellow #c7c10c +pale cyan #b7fffa +key lime #aeff6e +tomato red #ec2d01 +lightgreen #76ff7b +merlot #730039 +night blue #040348 +purpleish pink #df4ec8 +apple #6ecb3c +baby poop green #8f9805 +green apple #5edc1f +heliotrope #d94ff5 +yellow/green #c8fd3d +almost black #070d0d +cool blue #4984b8 +leafy green #51b73b +mustard brown #ac7e04 +dusk #4e5481 +dull brown #876e4b +frog green #58bc08 +vivid green #2fef10 +bright light green #2dfe54 +fluro green #0aff02 +kiwi #9cef43 +seaweed #18d17b +navy green #35530a +ultramarine blue #1805db +iris #6258c4 +pastel orange #ff964f +yellowish orange #ffab0f +perrywinkle #8f8ce7 +tealish #24bca8 +dark plum #3f012c +pear #cbf85f +pinkish orange #ff724c +midnight purple #280137 +light urple #b36ff6 +dark mint #48c072 +greenish tan #bccb7a +light burgundy #a8415b +turquoise blue #06b1c4 +ugly pink #cd7584 +sandy #f1da7a +electric pink #ff0490 +muted purple #805b87 +mid green #50a747 +greyish #a8a495 +neon yellow #cfff04 +banana #ffff7e +carnation pink #ff7fa7 +tomato #ef4026 +sea #3c9992 +muddy brown #886806 +turquoise green #04f489 +buff #fef69e +fawn #cfaf7b +muted blue #3b719f +pale rose #fdc1c5 +dark mint green #20c073 +amethyst #9b5fc0 +blue/green #0f9b8e +chestnut #742802 +sick green #9db92c +pea #a4bf20 +rusty orange #cd5909 +stone #ada587 +rose red #be013c +pale aqua #b8ffeb +deep orange #dc4d01 +earth #a2653e +mossy green #638b27 +grassy green #419c03 +pale lime green #b1ff65 +light grey blue #9dbcd4 +pale grey #fdfdfe +asparagus #77ab56 +blueberry #464196 +purple red #990147 +pale lime #befd73 +greenish teal #32bf84 +caramel #af6f09 +deep magenta #a0025c +light peach #ffd8b1 +milk chocolate #7f4e1e +ocher #bf9b0c +off green #6ba353 +purply pink #f075e6 +lightblue #7bc8f6 +dusky blue #475f94 +golden #f5bf03 +light beige #fffeb6 +butter yellow #fffd74 +dusky purple #895b7b +french blue #436bad +ugly yellow #d0c101 +greeny yellow #c6f808 +orangish red #f43605 +shamrock green #02c14d +orangish brown #b25f03 +tree green #2a7e19 +deep violet #490648 +gunmetal #536267 +blue/purple #5a06ef +cherry #cf0234 +sandy brown #c4a661 +warm grey #978a84 +dark indigo #1f0954 +midnight #03012d +bluey green #2bb179 +grey pink #c3909b +soft purple #a66fb5 +blood #770001 +brown red #922b05 +medium grey #7d7f7c +berry #990f4b +poo #8f7303 +purpley pink #c83cb9 +light salmon #fea993 +snot #acbb0d +easter purple #c071fe +light yellow green #ccfd7f +dark navy blue #00022e +drab #828344 +light rose #ffc5cb +rouge #ab1239 +purplish red #b0054b +slime green #99cc04 +baby poop #937c00 +irish green #019529 +pink/purple #ef1de7 +dark navy #000435 +greeny blue #42b395 +light plum #9d5783 +pinkish grey #c8aca9 +dirty orange #c87606 +rust red #aa2704 +pale lilac #e4cbff +orangey red #fa4224 +primary blue #0804f9 +kermit green #5cb200 +brownish purple #76424e +murky green #6c7a0e +wheat #fbdd7e +very dark purple #2a0134 +bottle green #044a05 +watermelon #fd4659 +deep sky blue #0d75f8 +fire engine red #fe0002 +yellow ochre #cb9d06 +pumpkin orange #fb7d07 +pale olive #b9cc81 +light lilac #edc8ff +lightish green #61e160 +carolina blue #8ab8fe +mulberry #920a4e +shocking pink #fe02a2 +auburn #9a3001 +bright lime green #65fe08 +celadon #befdb7 +pinkish brown #b17261 +poo brown #885f01 +bright sky blue #02ccfe +celery #c1fd95 +dirt brown #836539 +strawberry #fb2943 +dark lime #84b701 +copper #b66325 +medium brown #7f5112 +muted green #5fa052 +robin's egg #6dedfd +bright aqua #0bf9ea +bright lavender #c760ff +ivory #ffffcb +very light purple #f6cefc +light navy #155084 +pink red #f5054f +olive brown #645403 +poop brown #7a5901 +mustard green #a8b504 +ocean green #3d9973 +very dark blue #000133 +dusty green #76a973 +light navy blue #2e5a88 +minty green #0bf77d +adobe #bd6c48 +barney #ac1db8 +jade green #2baf6a +bright light blue #26f7fd +light lime #aefd6c +dark khaki #9b8f55 +orange yellow #ffad01 +ocre #c69c04 +maize #f4d054 +faded pink #de9dac +british racing green #05480d +sandstone #c9ae74 +mud brown #60460f +light sea green #98f6b0 +robin egg blue #8af1fe +aqua marine #2ee8bb +dark sea green #11875d +soft pink #fdb0c0 +orangey brown #b16002 +cherry red #f7022a +burnt yellow #d5ab09 +brownish grey #86775f +camel #c69f59 +purplish grey #7a687f +marine #042e60 +greyish pink #c88d94 +pale turquoise #a5fbd5 +pastel yellow #fffe71 +bluey purple #6241c7 +canary yellow #fffe40 +faded red #d3494e +sepia #985e2b +coffee #a6814c +bright magenta #ff08e8 +mocha #9d7651 +ecru #feffca +purpleish #98568d +cranberry #9e003a +darkish green #287c37 +brown orange #b96902 +dusky rose #ba6873 +melon #ff7855 +sickly green #94b21c +silver #c5c9c7 +purply blue #661aee +purpleish blue #6140ef +hospital green #9be5aa +shit brown #7b5804 +mid blue #276ab3 +amber #feb308 +easter green #8cfd7e +soft blue #6488ea +cerulean blue #056eee +golden brown #b27a01 +bright turquoise #0ffef9 +red pink #fa2a55 +red purple #820747 +greyish brown #7a6a4f +vermillion #f4320c +russet #a13905 +steel grey #6f828a +lighter purple #a55af4 +bright violet #ad0afd +prussian blue #004577 +slate green #658d6d +dirty pink #ca7b80 +dark blue green #005249 +pine #2b5d34 +yellowy green #bff128 +dark gold #b59410 +bluish #2976bb +darkish blue #014182 +dull red #bb3f3f +pinky red #fc2647 +bronze #a87900 +pale teal #82cbb2 +military green #667c3e +barbie pink #fe46a5 +bubblegum pink #fe83cc +pea soup green #94a617 +dark mustard #a88905 +shit #7f5f00 +medium purple #9e43a2 +very dark green #062e03 +dirt #8a6e45 +dusky pink #cc7a8b +red violet #9e0168 +lemon yellow #fdff38 +pistachio #c0fa8b +dull yellow #eedc5b +dark lime green #7ebd01 +denim blue #3b5b92 +teal blue #01889f +lightish blue #3d7afd +purpley blue #5f34e7 +light indigo #6d5acf +swamp green #748500 +brown green #706c11 +dark maroon #3c0008 +hot purple #cb00f5 +dark forest green #002d04 +faded blue #658cbb +drab green #749551 +light lime green #b9ff66 +snot green #9dc100 +yellowish #faee66 +light blue green #7efbb3 +bordeaux #7b002c +light mauve #c292a1 +ocean #017b92 +marigold #fcc006 +muddy green #657432 +dull orange #d8863b +steel #738595 +electric purple #aa23ff +fluorescent green #08ff08 +yellowish brown #9b7a01 +blush #f29e8e +soft green #6fc276 +bright orange #ff5b00 +lemon #fdff52 +purple grey #866f85 +acid green #8ffe09 +pale lavender #eecffe +violet blue #510ac9 +light forest green #4f9153 +burnt red #9f2305 +khaki green #728639 +cerise #de0c62 +faded purple #916e99 +apricot #ffb16d +dark olive green #3c4d03 +grey brown #7f7053 +green grey #77926f +true blue #010fcc +pale violet #ceaefa +periwinkle blue #8f99fb +light sky blue #c6fcff +blurple #5539cc +green brown #544e03 +bluegreen #017a79 +bright teal #01f9c6 +brownish yellow #c9b003 +pea soup #929901 +forest #0b5509 +barney purple #a00498 +ultramarine #2000b1 +purplish #94568c +puke yellow #c2be0e +bluish grey #748b97 +dark periwinkle #665fd1 +dark lilac #9c6da5 +reddish #c44240 +light maroon #a24857 +dusty purple #825f87 +terra cotta #c9643b +avocado #90b134 +marine blue #01386a +teal green #25a36f +slate grey #59656d +lighter green #75fd63 +electric green #21fc0d +dusty blue #5a86ad +golden yellow #fec615 +bright yellow #fffd01 +light lavender #dfc5fe +umber #b26400 +poop #7f5e00 +dark peach #de7e5d +jungle green #048243 +eggshell #ffffd4 +denim #3b638c +yellow brown #b79400 +dull purple #84597e +chocolate brown #411900 +wine red #7b0323 +neon blue #04d9ff +dirty green #667e2c +light tan #fbeeac +ice blue #d7fffe +cadet blue #4e7496 +dark mauve #874c62 +very light blue #d5ffff +grey purple #826d8c +pastel pink #ffbacd +very light green #d1ffbd +dark sky blue #448ee4 +evergreen #05472a +dull pink #d5869d +aubergine #3d0734 +mahogany #4a0100 +reddish orange #f8481c +deep green #02590f +vomit green #89a203 +purple pink #e03fd8 +dusty pink #d58a94 +faded green #7bb274 +camo green #526525 +pinky purple #c94cbe +pink purple #db4bda +brownish red #9e3623 +dark rose #b5485d +mud #735c12 +brownish #9c6d57 +emerald green #028f1e +pale brown #b1916e +dull blue #49759c +burnt umber #a0450e +medium green #39ad48 +clay #b66a50 +light aqua #8cffdb +light olive green #a4be5c +brownish orange #cb7723 +dark aqua #05696b +purplish pink #ce5dae +dark salmon #c85a53 +greenish grey #96ae8d +jade #1fa774 +ugly green #7a9703 +dark beige #ac9362 +emerald #01a049 +pale red #d9544d +light magenta #fa5ff7 +sky #82cafc +light cyan #acfffc +yellow orange #fcb001 +reddish purple #910951 +reddish pink #fe2c54 +orchid #c875c4 +dirty yellow #cdc50a +orange red #fd411e +deep red #9a0200 +orange brown #be6400 +cobalt blue #030aa7 +neon pink #fe019a +rose pink #f7879a +greyish purple #887191 +raspberry #b00149 +aqua green #12e193 +salmon pink #fe7b7c +tangerine #ff9408 +brownish green #6a6e09 +red brown #8b2e16 +greenish brown #696112 +pumpkin #e17701 +pine green #0a481e +charcoal #343837 +baby pink #ffb7ce +cornflower #6a79f7 +blue violet #5d06e9 +chocolate #3d1c02 +greyish green #82a67d +scarlet #be0119 +green yellow #c9ff27 +dark olive #373e02 +sienna #a9561e +pastel purple #caa0ff +terracotta #ca6641 +aqua blue #02d8e9 +sage green #88b378 +blood red #980002 +deep pink #cb0162 +grass #5cac2d +moss #769958 +pastel blue #a2bffe +bluish green #10a674 +green blue #06b48b +dark tan #af884a +greenish blue #0b8b87 +pale orange #ffa756 +vomit #a2a415 +forrest green #154406 +dark lavender #856798 +dark violet #34013f +purple blue #632de9 +dark cyan #0a888a +olive drab #6f7632 +pinkish #d46a7e +cobalt #1e488f +neon purple #bc13fe +light turquoise #7ef4cc +apple green #76cd26 +dull green #74a662 +wine #80013f +powder blue #b1d1fc +off white #ffffe4 +electric blue #0652ff +dark turquoise #045c5a +blue purple #5729ce +azure #069af3 +bright red #ff000d +pinkish red #f10c45 +cornflower blue #5170d7 +light olive #acbf69 +grape #6c3461 +greyish blue #5e819d +purplish blue #601ef9 +yellowish green #b0dd16 +greenish yellow #cdfd02 +medium blue #2c6fbb +dusty rose #c0737a +light violet #d6b4fc +midnight blue #020035 +bluish purple #703be7 +red orange #fd3c06 +dark magenta #960056 +greenish #40a368 +ocean blue #03719c +coral #fc5a50 +cream #ffffc2 +reddish brown #7f2b0a +burnt sienna #b04e0f +brick #a03623 +sage #87ae73 +grey green #789b73 +white #ffffff +robin's egg blue #98eff9 +moss green #658b38 +steel blue #5a7d9a +eggplant #380835 +light yellow #fffe7a +leaf green #5ca904 +light grey #d8dcd6 +puke #a5a502 +pinkish purple #d648d7 +sea blue #047495 +pale purple #b790d4 +slate blue #5b7c99 +blue grey #607c8e +hunter green #0b4008 +fuchsia #ed0dd9 +crimson #8c000f +pale yellow #ffff84 +ochre #bf9005 +mustard yellow #d2bd0a +light red #ff474c +cerulean #0485d1 +pale pink #ffcfdc +deep blue #040273 +rust #a83c09 +light teal #90e4c1 +slate #516572 +goldenrod #fac205 +dark yellow #d5b60a +dark grey #363737 +army green #4b5d16 +grey blue #6b8ba4 +seafoam #80f9ad +puce #a57e52 +spring green #a9f971 +dark orange #c65102 +sand #e2ca76 +pastel green #b0ff9d +mint #9ffeb0 +light orange #fdaa48 +bright pink #fe01b1 +chartreuse #c1f80a +deep purple #36013f +dark brown #341c02 +taupe #b9a281 +pea green #8eab12 +puke green #9aae07 +kelly green #02ab2e +seafoam green #7af9ab +blue green #137e6d +khaki #aaa662 +burgundy #610023 +dark teal #014d4e +brick red #8f1402 +royal purple #4b006e +plum #580f41 +mint green #8fff9f +gold #dbb40c +baby blue #a2cffe +yellow green #c0fb2d +bright purple #be03fd +dark red #840000 +pale blue #d0fefe +grass green #3f9b0b +navy #01153e +aquamarine #04d8b2 +burnt orange #c04e01 +neon green #0cff0c +bright blue #0165fc +rose #cf6275 +light pink #ffd1df +mustard #ceb301 +indigo #380282 +lime #aaff32 +sea green #53fca1 +periwinkle #8e82fe +dark pink #cb416b +olive green #677a04 +peach #ffb07c +pale green #c7fdb5 +light brown #ad8150 +hot pink #ff028d +black #000000 +lilac #cea2fd +navy blue #001146 +royal blue #0504aa +beige #e6daa6 +salmon #ff796c +olive #6e750e +maroon #650021 +bright green #01ff07 +dark purple #35063e +mauve #ae7181 +forest green #06470c +aqua #13eac9 +cyan #00ffff +tan #d1b26f +dark blue #00035b +lavender #c79fef +turquoise #06c2ac +dark green #033500 +violet #9a0eea +light purple #bf77f6 +lime green #89fe05 +grey #929591 +sky blue #75bbfd +yellow #ffff14 +magenta #c20078 +light green #96f97b +orange #f97306 +teal #029386 +light blue #95d0fc +red #e50000 +brown #653700 +pink #ff81c0 +blue #0343df +green #15b01a +purple #7e1e9c diff --git a/image_colour_sum/src/bin/colour_gen.rs b/image_colour_sum/src/bin/colour_gen.rs new file mode 100644 index 0000000..e8c1798 --- /dev/null +++ b/image_colour_sum/src/bin/colour_gen.rs @@ -0,0 +1,150 @@ +use std::fs::read_to_string; +use std::env; + +fn main() { + let args: Vec = env::args().collect(); + if args.len() == 1 || args[1].contains("xkcd") { + gen_xkcd_file(); + } else if args[1].contains("x11") { + gen_x11_file(); + } else if args[1].contains("css") { + gen_css_file(); + } +} + +fn gen_css_file() { + let rgb_file = "resources/css_rgb.txt"; + let mut colour_pairs: Vec<(String, [u8; 3])> = Vec::new(); + for line in read_to_string(rgb_file).unwrap().lines() { + if line.starts_with('#') { + continue; + } + let parts: Vec<&str> = line.trim().split("#").collect(); + assert_eq!(2, parts.len()); + let name = titlecase_no_spaces(&parts[0].trim()); + let c = hexstr_to_rgb_u8(parts[1].trim()); + colour_pairs.push((name, c)); + } + gen_file(colour_pairs); +} + +fn gen_x11_file() { + let rgb_file = "resources/x11_rgb.txt"; + let mut colour_pairs: Vec<(String, [u8; 3])> = Vec::new(); + for line in read_to_string(rgb_file).unwrap().lines() { + if line.starts_with('#') { + continue; + } + let parts: Vec<&str> = line.split("\t\t").collect(); + assert_eq!(parts.len(), 2); + if parts[1].contains("grey") || parts[1].contains("Grey") { + // Deduplicate and remove US spelling + continue; + } + let name = titlecase_no_spaces(&parts[1]); + let c_parts = parts[0].replace(" ", " "); + let c_parts = c_parts.replace(" ", " "); + let c_parts: Vec<&str> = c_parts.trim().split(' ').collect(); + let c_nums = [ + c_parts[0].parse::().unwrap(), + c_parts[1].parse::().unwrap(), + c_parts[2].parse::().unwrap(), + ]; + if colour_pairs.contains(&(name.clone(), c_nums)) { + continue; + } + colour_pairs.push((name, c_nums)); + } + gen_file(colour_pairs); +} + +fn gen_xkcd_file() { + let rgb_file = "resources/xkcd_rgb.txt"; + let mut colour_pairs: Vec<(String, [u8; 3])> = Vec::new(); + for line in read_to_string(rgb_file).unwrap().lines() { + if line.starts_with('#') { + continue; + } + let parts: Vec<&str> = line.split("#").collect(); + assert_eq!(parts.len(), 2); + let c = hexstr_to_rgb_u8(parts[1].trim()); + let name = titlecase_no_spaces(&parts[0]); + colour_pairs.push((name, c)); + } + gen_file(colour_pairs); +} + +fn gen_file(colour_pairs: Vec<(String, [u8; 3])>) { + println!("#![allow(dead_code)]"); + println!("use std::slice::Iter;"); + println!("pub const NUM_COLOURS: usize = {};", colour_pairs.len()); + println!("#[derive(PartialEq, Clone, Copy, Hash, Eq, Debug)]"); + println!("pub enum Colour {{"); + for c in &colour_pairs { + println!(" {},", c.0); + } + println!("}}\n"); + println!("impl Colour {{"); + println!(" pub fn iterator() -> Iter<'static, Colour> {{"); + println!( + " static COLOURS: [Colour; {}] = [", + colour_pairs.len() + ); + for c in &colour_pairs { + println!(" Colour::{},", c.0) + } + println!(" ];"); + println!(" COLOURS.iter()"); + println!(" }}"); + println!(" pub fn to_rgb(&self) -> [u8; 3] {{"); + println!(" match self {{"); + for c in &colour_pairs { + println!( + " Colour::{} => [{}, {}, {}],", + c.0, c.1[0], c.1[1], c.1[2] + ); + } + println!(" }}"); + println!(" }}"); + println!("}}"); +} + +fn titlecase_no_spaces(s: &str) -> String { + let mut ts: String = String::new(); + let mut last_char_was_space = true; + for c in s.chars() { + if last_char_was_space { + ts.push(c.to_ascii_uppercase()); + last_char_was_space = false; + continue; + } + if c.is_whitespace() { + last_char_was_space = true; + continue; + } + if c == '\'' { + continue; + } + if c == '/' { + last_char_was_space = true; + ts.push('A'); + ts.push('n'); + ts.push('d'); + continue; + } + if c.is_alphanumeric() { + ts.push(c); + } + } + ts +} + +// Taken from https://stackoverflow.com/questions/52987181 +fn hexstr_to_rgb_u8(hex: &str) -> [u8; 3] { + assert_eq!(hex.len(), 6); + let c: Vec = (0..hex.len()) + .step_by(2) + .map(|i| u8::from_str_radix(&hex[i..i + 2], 16).unwrap()) + .collect(); + [c[0], c[1], c[2]] +} diff --git a/image_colour_sum/src/css_colours.rs b/image_colour_sum/src/css_colours.rs new file mode 100644 index 0000000..780e198 --- /dev/null +++ b/image_colour_sum/src/css_colours.rs @@ -0,0 +1,462 @@ +#![allow(dead_code)] +use std::slice::Iter; +pub const NUM_COLOURS: usize = 148; +#[derive(PartialEq, Clone, Copy, Hash, Eq, Debug)] +pub enum Colour { + Aliceblue, + Antiquewhite, + Aqua, + Aquamarine, + Azure, + Beige, + Bisque, + Black, + Blanchedalmond, + Blue, + Blueviolet, + Brown, + Burlywood, + Cadetblue, + Chartreuse, + Chocolate, + Coral, + Cornflowerblue, + Cornsilk, + Crimson, + Cyan, + Darkblue, + Darkcyan, + Darkgoldenrod, + Darkgray, + Darkgreen, + Darkgrey, + Darkkhaki, + Darkmagenta, + Darkolivegreen, + Darkorange, + Darkorchid, + Darkred, + Darksalmon, + Darkseagreen, + Darkslateblue, + Darkslategray, + Darkslategrey, + Darkturquoise, + Darkviolet, + Deeppink, + Deepskyblue, + Dimgray, + Dimgrey, + Dodgerblue, + Firebrick, + Floralwhite, + Forestgreen, + Fuchsia, + Gainsboro, + Ghostwhite, + Gold, + Goldenrod, + Gray, + Green, + Greenyellow, + Grey, + Honeydew, + Hotpink, + Indianred, + Indigo, + Ivory, + Khaki, + Lavender, + Lavenderblush, + Lawngreen, + Lemonchiffon, + Lightblue, + Lightcoral, + Lightcyan, + Lightgoldenrodyellow, + Lightgray, + Lightgreen, + Lightgrey, + Lightpink, + Lightsalmon, + Lightseagreen, + Lightskyblue, + Lightslategray, + Lightslategrey, + Lightsteelblue, + Lightyellow, + Lime, + Limegreen, + Linen, + Magenta, + Maroon, + Mediumaquamarine, + Mediumblue, + Mediumorchid, + Mediumpurple, + Mediumseagreen, + Mediumslateblue, + Mediumspringgreen, + Mediumturquoise, + Mediumvioletred, + Midnightblue, + Mintcream, + Mistyrose, + Moccasin, + Navajowhite, + Navy, + Oldlace, + Olive, + Olivedrab, + Orange, + Orangered, + Orchid, + Palegoldenrod, + Palegreen, + Paleturquoise, + Palevioletred, + Papayawhip, + Peachpuff, + Peru, + Pink, + Plum, + Powderblue, + Purple, + Rebeccapurple, + Red, + Rosybrown, + Royalblue, + Saddlebrown, + Salmon, + Sandybrown, + Seagreen, + Seashell, + Sienna, + Silver, + Skyblue, + Slateblue, + Slategray, + Slategrey, + Snow, + Springgreen, + Steelblue, + Tan, + Teal, + Thistle, + Tomato, + Turquoise, + Violet, + Wheat, + White, + Whitesmoke, + Yellow, + Yellowgreen, +} + +impl Colour { + pub fn iterator() -> Iter<'static, Colour> { + static COLOURS: [Colour; 148] = [ + Colour::Aliceblue, + Colour::Antiquewhite, + Colour::Aqua, + Colour::Aquamarine, + Colour::Azure, + Colour::Beige, + Colour::Bisque, + Colour::Black, + Colour::Blanchedalmond, + Colour::Blue, + Colour::Blueviolet, + Colour::Brown, + Colour::Burlywood, + Colour::Cadetblue, + Colour::Chartreuse, + Colour::Chocolate, + Colour::Coral, + Colour::Cornflowerblue, + Colour::Cornsilk, + Colour::Crimson, + Colour::Cyan, + Colour::Darkblue, + Colour::Darkcyan, + Colour::Darkgoldenrod, + Colour::Darkgray, + Colour::Darkgreen, + Colour::Darkgrey, + Colour::Darkkhaki, + Colour::Darkmagenta, + Colour::Darkolivegreen, + Colour::Darkorange, + Colour::Darkorchid, + Colour::Darkred, + Colour::Darksalmon, + Colour::Darkseagreen, + Colour::Darkslateblue, + Colour::Darkslategray, + Colour::Darkslategrey, + Colour::Darkturquoise, + Colour::Darkviolet, + Colour::Deeppink, + Colour::Deepskyblue, + Colour::Dimgray, + Colour::Dimgrey, + Colour::Dodgerblue, + Colour::Firebrick, + Colour::Floralwhite, + Colour::Forestgreen, + Colour::Fuchsia, + Colour::Gainsboro, + Colour::Ghostwhite, + Colour::Gold, + Colour::Goldenrod, + Colour::Gray, + Colour::Green, + Colour::Greenyellow, + Colour::Grey, + Colour::Honeydew, + Colour::Hotpink, + Colour::Indianred, + Colour::Indigo, + Colour::Ivory, + Colour::Khaki, + Colour::Lavender, + Colour::Lavenderblush, + Colour::Lawngreen, + Colour::Lemonchiffon, + Colour::Lightblue, + Colour::Lightcoral, + Colour::Lightcyan, + Colour::Lightgoldenrodyellow, + Colour::Lightgray, + Colour::Lightgreen, + Colour::Lightgrey, + Colour::Lightpink, + Colour::Lightsalmon, + Colour::Lightseagreen, + Colour::Lightskyblue, + Colour::Lightslategray, + Colour::Lightslategrey, + Colour::Lightsteelblue, + Colour::Lightyellow, + Colour::Lime, + Colour::Limegreen, + Colour::Linen, + Colour::Magenta, + Colour::Maroon, + Colour::Mediumaquamarine, + Colour::Mediumblue, + Colour::Mediumorchid, + Colour::Mediumpurple, + Colour::Mediumseagreen, + Colour::Mediumslateblue, + Colour::Mediumspringgreen, + Colour::Mediumturquoise, + Colour::Mediumvioletred, + Colour::Midnightblue, + Colour::Mintcream, + Colour::Mistyrose, + Colour::Moccasin, + Colour::Navajowhite, + Colour::Navy, + Colour::Oldlace, + Colour::Olive, + Colour::Olivedrab, + Colour::Orange, + Colour::Orangered, + Colour::Orchid, + Colour::Palegoldenrod, + Colour::Palegreen, + Colour::Paleturquoise, + Colour::Palevioletred, + Colour::Papayawhip, + Colour::Peachpuff, + Colour::Peru, + Colour::Pink, + Colour::Plum, + Colour::Powderblue, + Colour::Purple, + Colour::Rebeccapurple, + Colour::Red, + Colour::Rosybrown, + Colour::Royalblue, + Colour::Saddlebrown, + Colour::Salmon, + Colour::Sandybrown, + Colour::Seagreen, + Colour::Seashell, + Colour::Sienna, + Colour::Silver, + Colour::Skyblue, + Colour::Slateblue, + Colour::Slategray, + Colour::Slategrey, + Colour::Snow, + Colour::Springgreen, + Colour::Steelblue, + Colour::Tan, + Colour::Teal, + Colour::Thistle, + Colour::Tomato, + Colour::Turquoise, + Colour::Violet, + Colour::Wheat, + Colour::White, + Colour::Whitesmoke, + Colour::Yellow, + Colour::Yellowgreen, + ]; + COLOURS.iter() + } + pub fn to_rgb(&self) -> [u8; 3] { + match self { + Colour::Aliceblue => [240, 248, 255], + Colour::Antiquewhite => [250, 235, 215], + Colour::Aqua => [0, 255, 255], + Colour::Aquamarine => [127, 255, 212], + Colour::Azure => [240, 255, 255], + Colour::Beige => [245, 245, 220], + Colour::Bisque => [255, 228, 196], + Colour::Black => [0, 0, 0], + Colour::Blanchedalmond => [255, 235, 205], + Colour::Blue => [0, 0, 255], + Colour::Blueviolet => [138, 43, 226], + Colour::Brown => [165, 42, 42], + Colour::Burlywood => [222, 184, 135], + Colour::Cadetblue => [95, 158, 160], + Colour::Chartreuse => [127, 255, 0], + Colour::Chocolate => [210, 105, 30], + Colour::Coral => [255, 127, 80], + Colour::Cornflowerblue => [100, 149, 237], + Colour::Cornsilk => [255, 248, 220], + Colour::Crimson => [220, 20, 60], + Colour::Cyan => [0, 255, 255], + Colour::Darkblue => [0, 0, 139], + Colour::Darkcyan => [0, 139, 139], + Colour::Darkgoldenrod => [184, 134, 11], + Colour::Darkgray => [169, 169, 169], + Colour::Darkgreen => [0, 100, 0], + Colour::Darkgrey => [169, 169, 169], + Colour::Darkkhaki => [189, 183, 107], + Colour::Darkmagenta => [139, 0, 139], + Colour::Darkolivegreen => [85, 107, 47], + Colour::Darkorange => [255, 140, 0], + Colour::Darkorchid => [153, 50, 204], + Colour::Darkred => [139, 0, 0], + Colour::Darksalmon => [233, 150, 122], + Colour::Darkseagreen => [143, 188, 143], + Colour::Darkslateblue => [72, 61, 139], + Colour::Darkslategray => [47, 79, 79], + Colour::Darkslategrey => [47, 79, 79], + Colour::Darkturquoise => [0, 206, 209], + Colour::Darkviolet => [148, 0, 211], + Colour::Deeppink => [255, 20, 147], + Colour::Deepskyblue => [0, 191, 255], + Colour::Dimgray => [105, 105, 105], + Colour::Dimgrey => [105, 105, 105], + Colour::Dodgerblue => [30, 144, 255], + Colour::Firebrick => [178, 34, 34], + Colour::Floralwhite => [255, 250, 240], + Colour::Forestgreen => [34, 139, 34], + Colour::Fuchsia => [255, 0, 255], + Colour::Gainsboro => [220, 220, 220], + Colour::Ghostwhite => [248, 248, 255], + Colour::Gold => [255, 215, 0], + Colour::Goldenrod => [218, 165, 32], + Colour::Gray => [128, 128, 128], + Colour::Green => [0, 128, 0], + Colour::Greenyellow => [173, 255, 47], + Colour::Grey => [128, 128, 128], + Colour::Honeydew => [240, 255, 240], + Colour::Hotpink => [255, 105, 180], + Colour::Indianred => [205, 92, 92], + Colour::Indigo => [75, 0, 130], + Colour::Ivory => [255, 255, 240], + Colour::Khaki => [240, 230, 140], + Colour::Lavender => [230, 230, 250], + Colour::Lavenderblush => [255, 240, 245], + Colour::Lawngreen => [124, 252, 0], + Colour::Lemonchiffon => [255, 250, 205], + Colour::Lightblue => [173, 216, 230], + Colour::Lightcoral => [240, 128, 128], + Colour::Lightcyan => [224, 255, 255], + Colour::Lightgoldenrodyellow => [250, 250, 210], + Colour::Lightgray => [211, 211, 211], + Colour::Lightgreen => [144, 238, 144], + Colour::Lightgrey => [211, 211, 211], + Colour::Lightpink => [255, 182, 193], + Colour::Lightsalmon => [255, 160, 122], + Colour::Lightseagreen => [32, 178, 170], + Colour::Lightskyblue => [135, 206, 250], + Colour::Lightslategray => [119, 136, 153], + Colour::Lightslategrey => [119, 136, 153], + Colour::Lightsteelblue => [176, 196, 222], + Colour::Lightyellow => [255, 255, 224], + Colour::Lime => [0, 255, 0], + Colour::Limegreen => [50, 205, 50], + Colour::Linen => [250, 240, 230], + Colour::Magenta => [255, 0, 255], + Colour::Maroon => [128, 0, 0], + Colour::Mediumaquamarine => [102, 205, 170], + Colour::Mediumblue => [0, 0, 205], + Colour::Mediumorchid => [186, 85, 211], + Colour::Mediumpurple => [147, 112, 219], + Colour::Mediumseagreen => [60, 179, 113], + Colour::Mediumslateblue => [123, 104, 238], + Colour::Mediumspringgreen => [0, 250, 154], + Colour::Mediumturquoise => [72, 209, 204], + Colour::Mediumvioletred => [199, 21, 133], + Colour::Midnightblue => [25, 25, 112], + Colour::Mintcream => [245, 255, 250], + Colour::Mistyrose => [255, 228, 225], + Colour::Moccasin => [255, 228, 181], + Colour::Navajowhite => [255, 222, 173], + Colour::Navy => [0, 0, 128], + Colour::Oldlace => [253, 245, 230], + Colour::Olive => [128, 128, 0], + Colour::Olivedrab => [107, 142, 35], + Colour::Orange => [255, 165, 0], + Colour::Orangered => [255, 69, 0], + Colour::Orchid => [218, 112, 214], + Colour::Palegoldenrod => [238, 232, 170], + Colour::Palegreen => [152, 251, 152], + Colour::Paleturquoise => [175, 238, 238], + Colour::Palevioletred => [219, 112, 147], + Colour::Papayawhip => [255, 239, 213], + Colour::Peachpuff => [255, 218, 185], + Colour::Peru => [205, 133, 63], + Colour::Pink => [255, 192, 203], + Colour::Plum => [221, 160, 221], + Colour::Powderblue => [176, 224, 230], + Colour::Purple => [128, 0, 128], + Colour::Rebeccapurple => [102, 51, 153], + Colour::Red => [255, 0, 0], + Colour::Rosybrown => [188, 143, 143], + Colour::Royalblue => [65, 105, 225], + Colour::Saddlebrown => [139, 69, 19], + Colour::Salmon => [250, 128, 114], + Colour::Sandybrown => [244, 164, 96], + Colour::Seagreen => [46, 139, 87], + Colour::Seashell => [255, 245, 238], + Colour::Sienna => [160, 82, 45], + Colour::Silver => [192, 192, 192], + Colour::Skyblue => [135, 206, 235], + Colour::Slateblue => [106, 90, 205], + Colour::Slategray => [112, 128, 144], + Colour::Slategrey => [112, 128, 144], + Colour::Snow => [255, 250, 250], + Colour::Springgreen => [0, 255, 127], + Colour::Steelblue => [70, 130, 180], + Colour::Tan => [210, 180, 140], + Colour::Teal => [0, 128, 128], + Colour::Thistle => [216, 191, 216], + Colour::Tomato => [255, 99, 71], + Colour::Turquoise => [64, 224, 208], + Colour::Violet => [238, 130, 238], + Colour::Wheat => [245, 222, 179], + Colour::White => [255, 255, 255], + Colour::Whitesmoke => [245, 245, 245], + Colour::Yellow => [255, 255, 0], + Colour::Yellowgreen => [154, 205, 50], + } + } +} diff --git a/image_colour_sum/src/main.rs b/image_colour_sum/src/main.rs new file mode 100644 index 0000000..d62385c --- /dev/null +++ b/image_colour_sum/src/main.rs @@ -0,0 +1,87 @@ +use image::{DynamicImage, GenericImageView, Pixel, Rgb, RgbImage, ImageBuffer}; +use std::env; +mod xkcd_colours; +mod x11_colours; +mod css_colours; +//use xkcd_colours as colours; +//use x11_colours as colours; +use css_colours as colours; + +fn main() { + let args: Vec = env::args().collect(); + if args.len() == 2 { + process_image_file(&args[1]); + } + replace_colours_with_nearest(); +} + +fn replace_colours_with_nearest() { + let img = image::open("resources/pexels-scott-webb-137594.jpg").unwrap(); + let (width, height) = img.dimensions(); + let mut out: RgbImage = ImageBuffer::new(width, height); + for x in 0..width { + for y in 0..height { + let pixel = img.get_pixel(x, y).to_rgb(); + out.put_pixel(x, y, Rgb(get_nearest_colour(pixel).to_rgb())); + } + } + out.save("out.jpg").unwrap(); +} + +fn get_all_nearest_colours(img: DynamicImage) -> Vec<(colours::Colour, u32)> { + let mut colours: Vec<(colours::Colour, u32)> = Vec::with_capacity(colours::NUM_COLOURS); + for c in colours::Colour::iterator() { + colours.push((c.clone(), 0)); + } + for pixel in img.pixels() { + let pixel_colour = get_nearest_colour(pixel.2.to_rgb()); + colours[pixel_colour as usize].1 = colours[pixel_colour as usize].1 + 1; + } + colours.retain(|(_c, n)| *n != 0 as u32); + colours.sort_by(|a, b| b.1.cmp(&a.1)); + colours +} + +fn get_nearest_colour(p: Rgb) -> colours::Colour { + let mut lowest_distance = f64::MAX; + let mut closest_colour = colours::Colour::Black; + for col in colours::Colour::iterator() { + let c = col.to_rgb(); + let d = (p.0[0] as i32 - c[0] as i32).pow(2) + (p.0[1] as i32 - c[1] as i32).pow(2) as i32 + (p.0[2] as i32 - c[2] as i32).pow(2); + let d = (d as f64).sqrt(); + if d < lowest_distance { + closest_colour = col.clone(); + lowest_distance = d; + } + } + closest_colour +} + +fn process_image_file(file: &str) -> Vec<(colours::Colour, u32)> { + let img = image::open(file).unwrap(); + let colours = get_all_nearest_colours(img); + colours +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_rusty_pic() { + let colours = process_image_file("resources/pexels-scott-webb-137594.jpg"); + println!("{:?}", colours); + } + + #[test] + fn test_birdy_pic() { + let colours = process_image_file("resources/pexels-erik-karits-3761421.jpg"); + println!("{:?}", colours); + } + + #[test] + fn test_painty_pic() { + let colours = process_image_file("resources/pexels-steve-johnson-1070536.jpg"); + println!("{:?}", colours); + } +} diff --git a/image_colour_sum/src/x11_colours.rs b/image_colour_sum/src/x11_colours.rs new file mode 100644 index 0000000..6a2a005 --- /dev/null +++ b/image_colour_sum/src/x11_colours.rs @@ -0,0 +1,1716 @@ +#![allow(dead_code)] +use std::slice::Iter; +pub const NUM_COLOURS: usize = 566; +#[derive(PartialEq, Clone, Copy, Hash, Eq, Debug)] +pub enum Colour { + Snow, + GhostWhite, + WhiteSmoke, + Gainsboro, + FloralWhite, + OldLace, + Linen, + AntiqueWhite, + PapayaWhip, + BlanchedAlmond, + Bisque, + PeachPuff, + NavajoWhite, + Moccasin, + Cornsilk, + Ivory, + LemonChiffon, + Seashell, + Honeydew, + MintCream, + Azure, + AliceBlue, + Lavender, + LavenderBlush, + MistyRose, + White, + Black, + DarkSlateGray, + DimGray, + SlateGray, + LightSlateGray, + Gray, + X11Gray, + WebGray, + LightGray, + MidnightBlue, + Navy, + NavyBlue, + CornflowerBlue, + DarkSlateBlue, + SlateBlue, + MediumSlateBlue, + LightSlateBlue, + MediumBlue, + RoyalBlue, + Blue, + DodgerBlue, + DeepSkyBlue, + SkyBlue, + LightSkyBlue, + SteelBlue, + LightSteelBlue, + LightBlue, + PowderBlue, + PaleTurquoise, + DarkTurquoise, + MediumTurquoise, + Turquoise, + Cyan, + Aqua, + LightCyan, + CadetBlue, + MediumAquamarine, + Aquamarine, + DarkGreen, + DarkOliveGreen, + DarkSeaGreen, + SeaGreen, + MediumSeaGreen, + LightSeaGreen, + PaleGreen, + SpringGreen, + LawnGreen, + Green, + Lime, + X11Green, + WebGreen, + Chartreuse, + MediumSpringGreen, + GreenYellow, + LimeGreen, + YellowGreen, + ForestGreen, + OliveDrab, + DarkKhaki, + Khaki, + PaleGoldenrod, + LightGoldenrodYellow, + LightYellow, + Yellow, + Gold, + LightGoldenrod, + Goldenrod, + DarkGoldenrod, + RosyBrown, + IndianRed, + SaddleBrown, + Sienna, + Peru, + Burlywood, + Beige, + Wheat, + SandyBrown, + Tan, + Chocolate, + Firebrick, + Brown, + DarkSalmon, + Salmon, + LightSalmon, + Orange, + DarkOrange, + Coral, + LightCoral, + Tomato, + OrangeRed, + Red, + HotPink, + DeepPink, + Pink, + LightPink, + PaleVioletRed, + Maroon, + X11Maroon, + WebMaroon, + MediumVioletRed, + VioletRed, + Magenta, + Fuchsia, + Violet, + Plum, + Orchid, + MediumOrchid, + DarkOrchid, + DarkViolet, + BlueViolet, + Purple, + X11Purple, + WebPurple, + MediumPurple, + Thistle, + Snow1, + Snow2, + Snow3, + Snow4, + Seashell1, + Seashell2, + Seashell3, + Seashell4, + AntiqueWhite1, + AntiqueWhite2, + AntiqueWhite3, + AntiqueWhite4, + Bisque1, + Bisque2, + Bisque3, + Bisque4, + PeachPuff1, + PeachPuff2, + PeachPuff3, + PeachPuff4, + NavajoWhite1, + NavajoWhite2, + NavajoWhite3, + NavajoWhite4, + LemonChiffon1, + LemonChiffon2, + LemonChiffon3, + LemonChiffon4, + Cornsilk1, + Cornsilk2, + Cornsilk3, + Cornsilk4, + Ivory1, + Ivory2, + Ivory3, + Ivory4, + Honeydew1, + Honeydew2, + Honeydew3, + Honeydew4, + LavenderBlush1, + LavenderBlush2, + LavenderBlush3, + LavenderBlush4, + MistyRose1, + MistyRose2, + MistyRose3, + MistyRose4, + Azure1, + Azure2, + Azure3, + Azure4, + SlateBlue1, + SlateBlue2, + SlateBlue3, + SlateBlue4, + RoyalBlue1, + RoyalBlue2, + RoyalBlue3, + RoyalBlue4, + Blue1, + Blue2, + Blue3, + Blue4, + DodgerBlue1, + DodgerBlue2, + DodgerBlue3, + DodgerBlue4, + SteelBlue1, + SteelBlue2, + SteelBlue3, + SteelBlue4, + DeepSkyBlue1, + DeepSkyBlue2, + DeepSkyBlue3, + DeepSkyBlue4, + SkyBlue1, + SkyBlue2, + SkyBlue3, + SkyBlue4, + LightSkyBlue1, + LightSkyBlue2, + LightSkyBlue3, + LightSkyBlue4, + SlateGray1, + SlateGray2, + SlateGray3, + SlateGray4, + LightSteelBlue1, + LightSteelBlue2, + LightSteelBlue3, + LightSteelBlue4, + LightBlue1, + LightBlue2, + LightBlue3, + LightBlue4, + LightCyan1, + LightCyan2, + LightCyan3, + LightCyan4, + PaleTurquoise1, + PaleTurquoise2, + PaleTurquoise3, + PaleTurquoise4, + CadetBlue1, + CadetBlue2, + CadetBlue3, + CadetBlue4, + Turquoise1, + Turquoise2, + Turquoise3, + Turquoise4, + Cyan1, + Cyan2, + Cyan3, + Cyan4, + DarkSlateGray1, + DarkSlateGray2, + DarkSlateGray3, + DarkSlateGray4, + Aquamarine1, + Aquamarine2, + Aquamarine3, + Aquamarine4, + DarkSeaGreen1, + DarkSeaGreen2, + DarkSeaGreen3, + DarkSeaGreen4, + SeaGreen1, + SeaGreen2, + SeaGreen3, + SeaGreen4, + PaleGreen1, + PaleGreen2, + PaleGreen3, + PaleGreen4, + SpringGreen1, + SpringGreen2, + SpringGreen3, + SpringGreen4, + Green1, + Green2, + Green3, + Green4, + Chartreuse1, + Chartreuse2, + Chartreuse3, + Chartreuse4, + OliveDrab1, + OliveDrab2, + OliveDrab3, + OliveDrab4, + DarkOliveGreen1, + DarkOliveGreen2, + DarkOliveGreen3, + DarkOliveGreen4, + Khaki1, + Khaki2, + Khaki3, + Khaki4, + LightGoldenrod1, + LightGoldenrod2, + LightGoldenrod3, + LightGoldenrod4, + LightYellow1, + LightYellow2, + LightYellow3, + LightYellow4, + Yellow1, + Yellow2, + Yellow3, + Yellow4, + Gold1, + Gold2, + Gold3, + Gold4, + Goldenrod1, + Goldenrod2, + Goldenrod3, + Goldenrod4, + DarkGoldenrod1, + DarkGoldenrod2, + DarkGoldenrod3, + DarkGoldenrod4, + RosyBrown1, + RosyBrown2, + RosyBrown3, + RosyBrown4, + IndianRed1, + IndianRed2, + IndianRed3, + IndianRed4, + Sienna1, + Sienna2, + Sienna3, + Sienna4, + Burlywood1, + Burlywood2, + Burlywood3, + Burlywood4, + Wheat1, + Wheat2, + Wheat3, + Wheat4, + Tan1, + Tan2, + Tan3, + Tan4, + Chocolate1, + Chocolate2, + Chocolate3, + Chocolate4, + Firebrick1, + Firebrick2, + Firebrick3, + Firebrick4, + Brown1, + Brown2, + Brown3, + Brown4, + Salmon1, + Salmon2, + Salmon3, + Salmon4, + LightSalmon1, + LightSalmon2, + LightSalmon3, + LightSalmon4, + Orange1, + Orange2, + Orange3, + Orange4, + DarkOrange1, + DarkOrange2, + DarkOrange3, + DarkOrange4, + Coral1, + Coral2, + Coral3, + Coral4, + Tomato1, + Tomato2, + Tomato3, + Tomato4, + OrangeRed1, + OrangeRed2, + OrangeRed3, + OrangeRed4, + Red1, + Red2, + Red3, + Red4, + DeepPink1, + DeepPink2, + DeepPink3, + DeepPink4, + HotPink1, + HotPink2, + HotPink3, + HotPink4, + Pink1, + Pink2, + Pink3, + Pink4, + LightPink1, + LightPink2, + LightPink3, + LightPink4, + PaleVioletRed1, + PaleVioletRed2, + PaleVioletRed3, + PaleVioletRed4, + Maroon1, + Maroon2, + Maroon3, + Maroon4, + VioletRed1, + VioletRed2, + VioletRed3, + VioletRed4, + Magenta1, + Magenta2, + Magenta3, + Magenta4, + Orchid1, + Orchid2, + Orchid3, + Orchid4, + Plum1, + Plum2, + Plum3, + Plum4, + MediumOrchid1, + MediumOrchid2, + MediumOrchid3, + MediumOrchid4, + DarkOrchid1, + DarkOrchid2, + DarkOrchid3, + DarkOrchid4, + Purple1, + Purple2, + Purple3, + Purple4, + MediumPurple1, + MediumPurple2, + MediumPurple3, + MediumPurple4, + Thistle1, + Thistle2, + Thistle3, + Thistle4, + Gray0, + Gray1, + Gray2, + Gray3, + Gray4, + Gray5, + Gray6, + Gray7, + Gray8, + Gray9, + Gray10, + Gray11, + Gray12, + Gray13, + Gray14, + Gray15, + Gray16, + Gray17, + Gray18, + Gray19, + Gray20, + Gray21, + Gray22, + Gray23, + Gray24, + Gray25, + Gray26, + Gray27, + Gray28, + Gray29, + Gray30, + Gray31, + Gray32, + Gray33, + Gray34, + Gray35, + Gray36, + Gray37, + Gray38, + Gray39, + Gray40, + Gray41, + Gray42, + Gray43, + Gray44, + Gray45, + Gray46, + Gray47, + Gray48, + Gray49, + Gray50, + Gray51, + Gray52, + Gray53, + Gray54, + Gray55, + Gray56, + Gray57, + Gray58, + Gray59, + Gray60, + Gray61, + Gray62, + Gray63, + Gray64, + Gray65, + Gray66, + Gray67, + Gray68, + Gray69, + Gray70, + Gray71, + Gray72, + Gray73, + Gray74, + Gray75, + Gray76, + Gray77, + Gray78, + Gray79, + Gray80, + Gray81, + Gray82, + Gray83, + Gray84, + Gray85, + Gray86, + Gray87, + Gray88, + Gray89, + Gray90, + Gray91, + Gray92, + Gray93, + Gray94, + Gray95, + Gray96, + Gray97, + Gray98, + Gray99, + Gray100, + DarkGray, + DarkBlue, + DarkCyan, + DarkMagenta, + DarkRed, + LightGreen, + Crimson, + Indigo, + Olive, + RebeccaPurple, + Silver, + Teal, +} + +impl Colour { + pub fn iterator() -> Iter<'static, Colour> { + static COLOURS: [Colour; 566] = [ + Colour::Snow, + Colour::GhostWhite, + Colour::WhiteSmoke, + Colour::Gainsboro, + Colour::FloralWhite, + Colour::OldLace, + Colour::Linen, + Colour::AntiqueWhite, + Colour::PapayaWhip, + Colour::BlanchedAlmond, + Colour::Bisque, + Colour::PeachPuff, + Colour::NavajoWhite, + Colour::Moccasin, + Colour::Cornsilk, + Colour::Ivory, + Colour::LemonChiffon, + Colour::Seashell, + Colour::Honeydew, + Colour::MintCream, + Colour::Azure, + Colour::AliceBlue, + Colour::Lavender, + Colour::LavenderBlush, + Colour::MistyRose, + Colour::White, + Colour::Black, + Colour::DarkSlateGray, + Colour::DimGray, + Colour::SlateGray, + Colour::LightSlateGray, + Colour::Gray, + Colour::X11Gray, + Colour::WebGray, + Colour::LightGray, + Colour::MidnightBlue, + Colour::Navy, + Colour::NavyBlue, + Colour::CornflowerBlue, + Colour::DarkSlateBlue, + Colour::SlateBlue, + Colour::MediumSlateBlue, + Colour::LightSlateBlue, + Colour::MediumBlue, + Colour::RoyalBlue, + Colour::Blue, + Colour::DodgerBlue, + Colour::DeepSkyBlue, + Colour::SkyBlue, + Colour::LightSkyBlue, + Colour::SteelBlue, + Colour::LightSteelBlue, + Colour::LightBlue, + Colour::PowderBlue, + Colour::PaleTurquoise, + Colour::DarkTurquoise, + Colour::MediumTurquoise, + Colour::Turquoise, + Colour::Cyan, + Colour::Aqua, + Colour::LightCyan, + Colour::CadetBlue, + Colour::MediumAquamarine, + Colour::Aquamarine, + Colour::DarkGreen, + Colour::DarkOliveGreen, + Colour::DarkSeaGreen, + Colour::SeaGreen, + Colour::MediumSeaGreen, + Colour::LightSeaGreen, + Colour::PaleGreen, + Colour::SpringGreen, + Colour::LawnGreen, + Colour::Green, + Colour::Lime, + Colour::X11Green, + Colour::WebGreen, + Colour::Chartreuse, + Colour::MediumSpringGreen, + Colour::GreenYellow, + Colour::LimeGreen, + Colour::YellowGreen, + Colour::ForestGreen, + Colour::OliveDrab, + Colour::DarkKhaki, + Colour::Khaki, + Colour::PaleGoldenrod, + Colour::LightGoldenrodYellow, + Colour::LightYellow, + Colour::Yellow, + Colour::Gold, + Colour::LightGoldenrod, + Colour::Goldenrod, + Colour::DarkGoldenrod, + Colour::RosyBrown, + Colour::IndianRed, + Colour::SaddleBrown, + Colour::Sienna, + Colour::Peru, + Colour::Burlywood, + Colour::Beige, + Colour::Wheat, + Colour::SandyBrown, + Colour::Tan, + Colour::Chocolate, + Colour::Firebrick, + Colour::Brown, + Colour::DarkSalmon, + Colour::Salmon, + Colour::LightSalmon, + Colour::Orange, + Colour::DarkOrange, + Colour::Coral, + Colour::LightCoral, + Colour::Tomato, + Colour::OrangeRed, + Colour::Red, + Colour::HotPink, + Colour::DeepPink, + Colour::Pink, + Colour::LightPink, + Colour::PaleVioletRed, + Colour::Maroon, + Colour::X11Maroon, + Colour::WebMaroon, + Colour::MediumVioletRed, + Colour::VioletRed, + Colour::Magenta, + Colour::Fuchsia, + Colour::Violet, + Colour::Plum, + Colour::Orchid, + Colour::MediumOrchid, + Colour::DarkOrchid, + Colour::DarkViolet, + Colour::BlueViolet, + Colour::Purple, + Colour::X11Purple, + Colour::WebPurple, + Colour::MediumPurple, + Colour::Thistle, + Colour::Snow1, + Colour::Snow2, + Colour::Snow3, + Colour::Snow4, + Colour::Seashell1, + Colour::Seashell2, + Colour::Seashell3, + Colour::Seashell4, + Colour::AntiqueWhite1, + Colour::AntiqueWhite2, + Colour::AntiqueWhite3, + Colour::AntiqueWhite4, + Colour::Bisque1, + Colour::Bisque2, + Colour::Bisque3, + Colour::Bisque4, + Colour::PeachPuff1, + Colour::PeachPuff2, + Colour::PeachPuff3, + Colour::PeachPuff4, + Colour::NavajoWhite1, + Colour::NavajoWhite2, + Colour::NavajoWhite3, + Colour::NavajoWhite4, + Colour::LemonChiffon1, + Colour::LemonChiffon2, + Colour::LemonChiffon3, + Colour::LemonChiffon4, + Colour::Cornsilk1, + Colour::Cornsilk2, + Colour::Cornsilk3, + Colour::Cornsilk4, + Colour::Ivory1, + Colour::Ivory2, + Colour::Ivory3, + Colour::Ivory4, + Colour::Honeydew1, + Colour::Honeydew2, + Colour::Honeydew3, + Colour::Honeydew4, + Colour::LavenderBlush1, + Colour::LavenderBlush2, + Colour::LavenderBlush3, + Colour::LavenderBlush4, + Colour::MistyRose1, + Colour::MistyRose2, + Colour::MistyRose3, + Colour::MistyRose4, + Colour::Azure1, + Colour::Azure2, + Colour::Azure3, + Colour::Azure4, + Colour::SlateBlue1, + Colour::SlateBlue2, + Colour::SlateBlue3, + Colour::SlateBlue4, + Colour::RoyalBlue1, + Colour::RoyalBlue2, + Colour::RoyalBlue3, + Colour::RoyalBlue4, + Colour::Blue1, + Colour::Blue2, + Colour::Blue3, + Colour::Blue4, + Colour::DodgerBlue1, + Colour::DodgerBlue2, + Colour::DodgerBlue3, + Colour::DodgerBlue4, + Colour::SteelBlue1, + Colour::SteelBlue2, + Colour::SteelBlue3, + Colour::SteelBlue4, + Colour::DeepSkyBlue1, + Colour::DeepSkyBlue2, + Colour::DeepSkyBlue3, + Colour::DeepSkyBlue4, + Colour::SkyBlue1, + Colour::SkyBlue2, + Colour::SkyBlue3, + Colour::SkyBlue4, + Colour::LightSkyBlue1, + Colour::LightSkyBlue2, + Colour::LightSkyBlue3, + Colour::LightSkyBlue4, + Colour::SlateGray1, + Colour::SlateGray2, + Colour::SlateGray3, + Colour::SlateGray4, + Colour::LightSteelBlue1, + Colour::LightSteelBlue2, + Colour::LightSteelBlue3, + Colour::LightSteelBlue4, + Colour::LightBlue1, + Colour::LightBlue2, + Colour::LightBlue3, + Colour::LightBlue4, + Colour::LightCyan1, + Colour::LightCyan2, + Colour::LightCyan3, + Colour::LightCyan4, + Colour::PaleTurquoise1, + Colour::PaleTurquoise2, + Colour::PaleTurquoise3, + Colour::PaleTurquoise4, + Colour::CadetBlue1, + Colour::CadetBlue2, + Colour::CadetBlue3, + Colour::CadetBlue4, + Colour::Turquoise1, + Colour::Turquoise2, + Colour::Turquoise3, + Colour::Turquoise4, + Colour::Cyan1, + Colour::Cyan2, + Colour::Cyan3, + Colour::Cyan4, + Colour::DarkSlateGray1, + Colour::DarkSlateGray2, + Colour::DarkSlateGray3, + Colour::DarkSlateGray4, + Colour::Aquamarine1, + Colour::Aquamarine2, + Colour::Aquamarine3, + Colour::Aquamarine4, + Colour::DarkSeaGreen1, + Colour::DarkSeaGreen2, + Colour::DarkSeaGreen3, + Colour::DarkSeaGreen4, + Colour::SeaGreen1, + Colour::SeaGreen2, + Colour::SeaGreen3, + Colour::SeaGreen4, + Colour::PaleGreen1, + Colour::PaleGreen2, + Colour::PaleGreen3, + Colour::PaleGreen4, + Colour::SpringGreen1, + Colour::SpringGreen2, + Colour::SpringGreen3, + Colour::SpringGreen4, + Colour::Green1, + Colour::Green2, + Colour::Green3, + Colour::Green4, + Colour::Chartreuse1, + Colour::Chartreuse2, + Colour::Chartreuse3, + Colour::Chartreuse4, + Colour::OliveDrab1, + Colour::OliveDrab2, + Colour::OliveDrab3, + Colour::OliveDrab4, + Colour::DarkOliveGreen1, + Colour::DarkOliveGreen2, + Colour::DarkOliveGreen3, + Colour::DarkOliveGreen4, + Colour::Khaki1, + Colour::Khaki2, + Colour::Khaki3, + Colour::Khaki4, + Colour::LightGoldenrod1, + Colour::LightGoldenrod2, + Colour::LightGoldenrod3, + Colour::LightGoldenrod4, + Colour::LightYellow1, + Colour::LightYellow2, + Colour::LightYellow3, + Colour::LightYellow4, + Colour::Yellow1, + Colour::Yellow2, + Colour::Yellow3, + Colour::Yellow4, + Colour::Gold1, + Colour::Gold2, + Colour::Gold3, + Colour::Gold4, + Colour::Goldenrod1, + Colour::Goldenrod2, + Colour::Goldenrod3, + Colour::Goldenrod4, + Colour::DarkGoldenrod1, + Colour::DarkGoldenrod2, + Colour::DarkGoldenrod3, + Colour::DarkGoldenrod4, + Colour::RosyBrown1, + Colour::RosyBrown2, + Colour::RosyBrown3, + Colour::RosyBrown4, + Colour::IndianRed1, + Colour::IndianRed2, + Colour::IndianRed3, + Colour::IndianRed4, + Colour::Sienna1, + Colour::Sienna2, + Colour::Sienna3, + Colour::Sienna4, + Colour::Burlywood1, + Colour::Burlywood2, + Colour::Burlywood3, + Colour::Burlywood4, + Colour::Wheat1, + Colour::Wheat2, + Colour::Wheat3, + Colour::Wheat4, + Colour::Tan1, + Colour::Tan2, + Colour::Tan3, + Colour::Tan4, + Colour::Chocolate1, + Colour::Chocolate2, + Colour::Chocolate3, + Colour::Chocolate4, + Colour::Firebrick1, + Colour::Firebrick2, + Colour::Firebrick3, + Colour::Firebrick4, + Colour::Brown1, + Colour::Brown2, + Colour::Brown3, + Colour::Brown4, + Colour::Salmon1, + Colour::Salmon2, + Colour::Salmon3, + Colour::Salmon4, + Colour::LightSalmon1, + Colour::LightSalmon2, + Colour::LightSalmon3, + Colour::LightSalmon4, + Colour::Orange1, + Colour::Orange2, + Colour::Orange3, + Colour::Orange4, + Colour::DarkOrange1, + Colour::DarkOrange2, + Colour::DarkOrange3, + Colour::DarkOrange4, + Colour::Coral1, + Colour::Coral2, + Colour::Coral3, + Colour::Coral4, + Colour::Tomato1, + Colour::Tomato2, + Colour::Tomato3, + Colour::Tomato4, + Colour::OrangeRed1, + Colour::OrangeRed2, + Colour::OrangeRed3, + Colour::OrangeRed4, + Colour::Red1, + Colour::Red2, + Colour::Red3, + Colour::Red4, + Colour::DeepPink1, + Colour::DeepPink2, + Colour::DeepPink3, + Colour::DeepPink4, + Colour::HotPink1, + Colour::HotPink2, + Colour::HotPink3, + Colour::HotPink4, + Colour::Pink1, + Colour::Pink2, + Colour::Pink3, + Colour::Pink4, + Colour::LightPink1, + Colour::LightPink2, + Colour::LightPink3, + Colour::LightPink4, + Colour::PaleVioletRed1, + Colour::PaleVioletRed2, + Colour::PaleVioletRed3, + Colour::PaleVioletRed4, + Colour::Maroon1, + Colour::Maroon2, + Colour::Maroon3, + Colour::Maroon4, + Colour::VioletRed1, + Colour::VioletRed2, + Colour::VioletRed3, + Colour::VioletRed4, + Colour::Magenta1, + Colour::Magenta2, + Colour::Magenta3, + Colour::Magenta4, + Colour::Orchid1, + Colour::Orchid2, + Colour::Orchid3, + Colour::Orchid4, + Colour::Plum1, + Colour::Plum2, + Colour::Plum3, + Colour::Plum4, + Colour::MediumOrchid1, + Colour::MediumOrchid2, + Colour::MediumOrchid3, + Colour::MediumOrchid4, + Colour::DarkOrchid1, + Colour::DarkOrchid2, + Colour::DarkOrchid3, + Colour::DarkOrchid4, + Colour::Purple1, + Colour::Purple2, + Colour::Purple3, + Colour::Purple4, + Colour::MediumPurple1, + Colour::MediumPurple2, + Colour::MediumPurple3, + Colour::MediumPurple4, + Colour::Thistle1, + Colour::Thistle2, + Colour::Thistle3, + Colour::Thistle4, + Colour::Gray0, + Colour::Gray1, + Colour::Gray2, + Colour::Gray3, + Colour::Gray4, + Colour::Gray5, + Colour::Gray6, + Colour::Gray7, + Colour::Gray8, + Colour::Gray9, + Colour::Gray10, + Colour::Gray11, + Colour::Gray12, + Colour::Gray13, + Colour::Gray14, + Colour::Gray15, + Colour::Gray16, + Colour::Gray17, + Colour::Gray18, + Colour::Gray19, + Colour::Gray20, + Colour::Gray21, + Colour::Gray22, + Colour::Gray23, + Colour::Gray24, + Colour::Gray25, + Colour::Gray26, + Colour::Gray27, + Colour::Gray28, + Colour::Gray29, + Colour::Gray30, + Colour::Gray31, + Colour::Gray32, + Colour::Gray33, + Colour::Gray34, + Colour::Gray35, + Colour::Gray36, + Colour::Gray37, + Colour::Gray38, + Colour::Gray39, + Colour::Gray40, + Colour::Gray41, + Colour::Gray42, + Colour::Gray43, + Colour::Gray44, + Colour::Gray45, + Colour::Gray46, + Colour::Gray47, + Colour::Gray48, + Colour::Gray49, + Colour::Gray50, + Colour::Gray51, + Colour::Gray52, + Colour::Gray53, + Colour::Gray54, + Colour::Gray55, + Colour::Gray56, + Colour::Gray57, + Colour::Gray58, + Colour::Gray59, + Colour::Gray60, + Colour::Gray61, + Colour::Gray62, + Colour::Gray63, + Colour::Gray64, + Colour::Gray65, + Colour::Gray66, + Colour::Gray67, + Colour::Gray68, + Colour::Gray69, + Colour::Gray70, + Colour::Gray71, + Colour::Gray72, + Colour::Gray73, + Colour::Gray74, + Colour::Gray75, + Colour::Gray76, + Colour::Gray77, + Colour::Gray78, + Colour::Gray79, + Colour::Gray80, + Colour::Gray81, + Colour::Gray82, + Colour::Gray83, + Colour::Gray84, + Colour::Gray85, + Colour::Gray86, + Colour::Gray87, + Colour::Gray88, + Colour::Gray89, + Colour::Gray90, + Colour::Gray91, + Colour::Gray92, + Colour::Gray93, + Colour::Gray94, + Colour::Gray95, + Colour::Gray96, + Colour::Gray97, + Colour::Gray98, + Colour::Gray99, + Colour::Gray100, + Colour::DarkGray, + Colour::DarkBlue, + Colour::DarkCyan, + Colour::DarkMagenta, + Colour::DarkRed, + Colour::LightGreen, + Colour::Crimson, + Colour::Indigo, + Colour::Olive, + Colour::RebeccaPurple, + Colour::Silver, + Colour::Teal, + ]; + COLOURS.iter() + } + pub fn to_rgb(&self) -> [u8; 3] { + match self { + Colour::Snow => [255, 250, 250], + Colour::GhostWhite => [248, 248, 255], + Colour::WhiteSmoke => [245, 245, 245], + Colour::Gainsboro => [220, 220, 220], + Colour::FloralWhite => [255, 250, 240], + Colour::OldLace => [253, 245, 230], + Colour::Linen => [250, 240, 230], + Colour::AntiqueWhite => [250, 235, 215], + Colour::PapayaWhip => [255, 239, 213], + Colour::BlanchedAlmond => [255, 235, 205], + Colour::Bisque => [255, 228, 196], + Colour::PeachPuff => [255, 218, 185], + Colour::NavajoWhite => [255, 222, 173], + Colour::Moccasin => [255, 228, 181], + Colour::Cornsilk => [255, 248, 220], + Colour::Ivory => [255, 255, 240], + Colour::LemonChiffon => [255, 250, 205], + Colour::Seashell => [255, 245, 238], + Colour::Honeydew => [240, 255, 240], + Colour::MintCream => [245, 255, 250], + Colour::Azure => [240, 255, 255], + Colour::AliceBlue => [240, 248, 255], + Colour::Lavender => [230, 230, 250], + Colour::LavenderBlush => [255, 240, 245], + Colour::MistyRose => [255, 228, 225], + Colour::White => [255, 255, 255], + Colour::Black => [0, 0, 0], + Colour::DarkSlateGray => [47, 79, 79], + Colour::DimGray => [105, 105, 105], + Colour::SlateGray => [112, 128, 144], + Colour::LightSlateGray => [119, 136, 153], + Colour::Gray => [190, 190, 190], + Colour::X11Gray => [190, 190, 190], + Colour::WebGray => [128, 128, 128], + Colour::LightGray => [211, 211, 211], + Colour::MidnightBlue => [25, 25, 112], + Colour::Navy => [0, 0, 128], + Colour::NavyBlue => [0, 0, 128], + Colour::CornflowerBlue => [100, 149, 237], + Colour::DarkSlateBlue => [72, 61, 139], + Colour::SlateBlue => [106, 90, 205], + Colour::MediumSlateBlue => [123, 104, 238], + Colour::LightSlateBlue => [132, 112, 255], + Colour::MediumBlue => [0, 0, 205], + Colour::RoyalBlue => [65, 105, 225], + Colour::Blue => [0, 0, 255], + Colour::DodgerBlue => [30, 144, 255], + Colour::DeepSkyBlue => [0, 191, 255], + Colour::SkyBlue => [135, 206, 235], + Colour::LightSkyBlue => [135, 206, 250], + Colour::SteelBlue => [70, 130, 180], + Colour::LightSteelBlue => [176, 196, 222], + Colour::LightBlue => [173, 216, 230], + Colour::PowderBlue => [176, 224, 230], + Colour::PaleTurquoise => [175, 238, 238], + Colour::DarkTurquoise => [0, 206, 209], + Colour::MediumTurquoise => [72, 209, 204], + Colour::Turquoise => [64, 224, 208], + Colour::Cyan => [0, 255, 255], + Colour::Aqua => [0, 255, 255], + Colour::LightCyan => [224, 255, 255], + Colour::CadetBlue => [95, 158, 160], + Colour::MediumAquamarine => [102, 205, 170], + Colour::Aquamarine => [127, 255, 212], + Colour::DarkGreen => [0, 100, 0], + Colour::DarkOliveGreen => [85, 107, 47], + Colour::DarkSeaGreen => [143, 188, 143], + Colour::SeaGreen => [46, 139, 87], + Colour::MediumSeaGreen => [60, 179, 113], + Colour::LightSeaGreen => [32, 178, 170], + Colour::PaleGreen => [152, 251, 152], + Colour::SpringGreen => [0, 255, 127], + Colour::LawnGreen => [124, 252, 0], + Colour::Green => [0, 255, 0], + Colour::Lime => [0, 255, 0], + Colour::X11Green => [0, 255, 0], + Colour::WebGreen => [0, 128, 0], + Colour::Chartreuse => [127, 255, 0], + Colour::MediumSpringGreen => [0, 250, 154], + Colour::GreenYellow => [173, 255, 47], + Colour::LimeGreen => [50, 205, 50], + Colour::YellowGreen => [154, 205, 50], + Colour::ForestGreen => [34, 139, 34], + Colour::OliveDrab => [107, 142, 35], + Colour::DarkKhaki => [189, 183, 107], + Colour::Khaki => [240, 230, 140], + Colour::PaleGoldenrod => [238, 232, 170], + Colour::LightGoldenrodYellow => [250, 250, 210], + Colour::LightYellow => [255, 255, 224], + Colour::Yellow => [255, 255, 0], + Colour::Gold => [255, 215, 0], + Colour::LightGoldenrod => [238, 221, 130], + Colour::Goldenrod => [218, 165, 32], + Colour::DarkGoldenrod => [184, 134, 11], + Colour::RosyBrown => [188, 143, 143], + Colour::IndianRed => [205, 92, 92], + Colour::SaddleBrown => [139, 69, 19], + Colour::Sienna => [160, 82, 45], + Colour::Peru => [205, 133, 63], + Colour::Burlywood => [222, 184, 135], + Colour::Beige => [245, 245, 220], + Colour::Wheat => [245, 222, 179], + Colour::SandyBrown => [244, 164, 96], + Colour::Tan => [210, 180, 140], + Colour::Chocolate => [210, 105, 30], + Colour::Firebrick => [178, 34, 34], + Colour::Brown => [165, 42, 42], + Colour::DarkSalmon => [233, 150, 122], + Colour::Salmon => [250, 128, 114], + Colour::LightSalmon => [255, 160, 122], + Colour::Orange => [255, 165, 0], + Colour::DarkOrange => [255, 140, 0], + Colour::Coral => [255, 127, 80], + Colour::LightCoral => [240, 128, 128], + Colour::Tomato => [255, 99, 71], + Colour::OrangeRed => [255, 69, 0], + Colour::Red => [255, 0, 0], + Colour::HotPink => [255, 105, 180], + Colour::DeepPink => [255, 20, 147], + Colour::Pink => [255, 192, 203], + Colour::LightPink => [255, 182, 193], + Colour::PaleVioletRed => [219, 112, 147], + Colour::Maroon => [176, 48, 96], + Colour::X11Maroon => [176, 48, 96], + Colour::WebMaroon => [128, 0, 0], + Colour::MediumVioletRed => [199, 21, 133], + Colour::VioletRed => [208, 32, 144], + Colour::Magenta => [255, 0, 255], + Colour::Fuchsia => [255, 0, 255], + Colour::Violet => [238, 130, 238], + Colour::Plum => [221, 160, 221], + Colour::Orchid => [218, 112, 214], + Colour::MediumOrchid => [186, 85, 211], + Colour::DarkOrchid => [153, 50, 204], + Colour::DarkViolet => [148, 0, 211], + Colour::BlueViolet => [138, 43, 226], + Colour::Purple => [160, 32, 240], + Colour::X11Purple => [160, 32, 240], + Colour::WebPurple => [128, 0, 128], + Colour::MediumPurple => [147, 112, 219], + Colour::Thistle => [216, 191, 216], + Colour::Snow1 => [255, 250, 250], + Colour::Snow2 => [238, 233, 233], + Colour::Snow3 => [205, 201, 201], + Colour::Snow4 => [139, 137, 137], + Colour::Seashell1 => [255, 245, 238], + Colour::Seashell2 => [238, 229, 222], + Colour::Seashell3 => [205, 197, 191], + Colour::Seashell4 => [139, 134, 130], + Colour::AntiqueWhite1 => [255, 239, 219], + Colour::AntiqueWhite2 => [238, 223, 204], + Colour::AntiqueWhite3 => [205, 192, 176], + Colour::AntiqueWhite4 => [139, 131, 120], + Colour::Bisque1 => [255, 228, 196], + Colour::Bisque2 => [238, 213, 183], + Colour::Bisque3 => [205, 183, 158], + Colour::Bisque4 => [139, 125, 107], + Colour::PeachPuff1 => [255, 218, 185], + Colour::PeachPuff2 => [238, 203, 173], + Colour::PeachPuff3 => [205, 175, 149], + Colour::PeachPuff4 => [139, 119, 101], + Colour::NavajoWhite1 => [255, 222, 173], + Colour::NavajoWhite2 => [238, 207, 161], + Colour::NavajoWhite3 => [205, 179, 139], + Colour::NavajoWhite4 => [139, 121, 94], + Colour::LemonChiffon1 => [255, 250, 205], + Colour::LemonChiffon2 => [238, 233, 191], + Colour::LemonChiffon3 => [205, 201, 165], + Colour::LemonChiffon4 => [139, 137, 112], + Colour::Cornsilk1 => [255, 248, 220], + Colour::Cornsilk2 => [238, 232, 205], + Colour::Cornsilk3 => [205, 200, 177], + Colour::Cornsilk4 => [139, 136, 120], + Colour::Ivory1 => [255, 255, 240], + Colour::Ivory2 => [238, 238, 224], + Colour::Ivory3 => [205, 205, 193], + Colour::Ivory4 => [139, 139, 131], + Colour::Honeydew1 => [240, 255, 240], + Colour::Honeydew2 => [224, 238, 224], + Colour::Honeydew3 => [193, 205, 193], + Colour::Honeydew4 => [131, 139, 131], + Colour::LavenderBlush1 => [255, 240, 245], + Colour::LavenderBlush2 => [238, 224, 229], + Colour::LavenderBlush3 => [205, 193, 197], + Colour::LavenderBlush4 => [139, 131, 134], + Colour::MistyRose1 => [255, 228, 225], + Colour::MistyRose2 => [238, 213, 210], + Colour::MistyRose3 => [205, 183, 181], + Colour::MistyRose4 => [139, 125, 123], + Colour::Azure1 => [240, 255, 255], + Colour::Azure2 => [224, 238, 238], + Colour::Azure3 => [193, 205, 205], + Colour::Azure4 => [131, 139, 139], + Colour::SlateBlue1 => [131, 111, 255], + Colour::SlateBlue2 => [122, 103, 238], + Colour::SlateBlue3 => [105, 89, 205], + Colour::SlateBlue4 => [71, 60, 139], + Colour::RoyalBlue1 => [72, 118, 255], + Colour::RoyalBlue2 => [67, 110, 238], + Colour::RoyalBlue3 => [58, 95, 205], + Colour::RoyalBlue4 => [39, 64, 139], + Colour::Blue1 => [0, 0, 255], + Colour::Blue2 => [0, 0, 238], + Colour::Blue3 => [0, 0, 205], + Colour::Blue4 => [0, 0, 139], + Colour::DodgerBlue1 => [30, 144, 255], + Colour::DodgerBlue2 => [28, 134, 238], + Colour::DodgerBlue3 => [24, 116, 205], + Colour::DodgerBlue4 => [16, 78, 139], + Colour::SteelBlue1 => [99, 184, 255], + Colour::SteelBlue2 => [92, 172, 238], + Colour::SteelBlue3 => [79, 148, 205], + Colour::SteelBlue4 => [54, 100, 139], + Colour::DeepSkyBlue1 => [0, 191, 255], + Colour::DeepSkyBlue2 => [0, 178, 238], + Colour::DeepSkyBlue3 => [0, 154, 205], + Colour::DeepSkyBlue4 => [0, 104, 139], + Colour::SkyBlue1 => [135, 206, 255], + Colour::SkyBlue2 => [126, 192, 238], + Colour::SkyBlue3 => [108, 166, 205], + Colour::SkyBlue4 => [74, 112, 139], + Colour::LightSkyBlue1 => [176, 226, 255], + Colour::LightSkyBlue2 => [164, 211, 238], + Colour::LightSkyBlue3 => [141, 182, 205], + Colour::LightSkyBlue4 => [96, 123, 139], + Colour::SlateGray1 => [198, 226, 255], + Colour::SlateGray2 => [185, 211, 238], + Colour::SlateGray3 => [159, 182, 205], + Colour::SlateGray4 => [108, 123, 139], + Colour::LightSteelBlue1 => [202, 225, 255], + Colour::LightSteelBlue2 => [188, 210, 238], + Colour::LightSteelBlue3 => [162, 181, 205], + Colour::LightSteelBlue4 => [110, 123, 139], + Colour::LightBlue1 => [191, 239, 255], + Colour::LightBlue2 => [178, 223, 238], + Colour::LightBlue3 => [154, 192, 205], + Colour::LightBlue4 => [104, 131, 139], + Colour::LightCyan1 => [224, 255, 255], + Colour::LightCyan2 => [209, 238, 238], + Colour::LightCyan3 => [180, 205, 205], + Colour::LightCyan4 => [122, 139, 139], + Colour::PaleTurquoise1 => [187, 255, 255], + Colour::PaleTurquoise2 => [174, 238, 238], + Colour::PaleTurquoise3 => [150, 205, 205], + Colour::PaleTurquoise4 => [102, 139, 139], + Colour::CadetBlue1 => [152, 245, 255], + Colour::CadetBlue2 => [142, 229, 238], + Colour::CadetBlue3 => [122, 197, 205], + Colour::CadetBlue4 => [83, 134, 139], + Colour::Turquoise1 => [0, 245, 255], + Colour::Turquoise2 => [0, 229, 238], + Colour::Turquoise3 => [0, 197, 205], + Colour::Turquoise4 => [0, 134, 139], + Colour::Cyan1 => [0, 255, 255], + Colour::Cyan2 => [0, 238, 238], + Colour::Cyan3 => [0, 205, 205], + Colour::Cyan4 => [0, 139, 139], + Colour::DarkSlateGray1 => [151, 255, 255], + Colour::DarkSlateGray2 => [141, 238, 238], + Colour::DarkSlateGray3 => [121, 205, 205], + Colour::DarkSlateGray4 => [82, 139, 139], + Colour::Aquamarine1 => [127, 255, 212], + Colour::Aquamarine2 => [118, 238, 198], + Colour::Aquamarine3 => [102, 205, 170], + Colour::Aquamarine4 => [69, 139, 116], + Colour::DarkSeaGreen1 => [193, 255, 193], + Colour::DarkSeaGreen2 => [180, 238, 180], + Colour::DarkSeaGreen3 => [155, 205, 155], + Colour::DarkSeaGreen4 => [105, 139, 105], + Colour::SeaGreen1 => [84, 255, 159], + Colour::SeaGreen2 => [78, 238, 148], + Colour::SeaGreen3 => [67, 205, 128], + Colour::SeaGreen4 => [46, 139, 87], + Colour::PaleGreen1 => [154, 255, 154], + Colour::PaleGreen2 => [144, 238, 144], + Colour::PaleGreen3 => [124, 205, 124], + Colour::PaleGreen4 => [84, 139, 84], + Colour::SpringGreen1 => [0, 255, 127], + Colour::SpringGreen2 => [0, 238, 118], + Colour::SpringGreen3 => [0, 205, 102], + Colour::SpringGreen4 => [0, 139, 69], + Colour::Green1 => [0, 255, 0], + Colour::Green2 => [0, 238, 0], + Colour::Green3 => [0, 205, 0], + Colour::Green4 => [0, 139, 0], + Colour::Chartreuse1 => [127, 255, 0], + Colour::Chartreuse2 => [118, 238, 0], + Colour::Chartreuse3 => [102, 205, 0], + Colour::Chartreuse4 => [69, 139, 0], + Colour::OliveDrab1 => [192, 255, 62], + Colour::OliveDrab2 => [179, 238, 58], + Colour::OliveDrab3 => [154, 205, 50], + Colour::OliveDrab4 => [105, 139, 34], + Colour::DarkOliveGreen1 => [202, 255, 112], + Colour::DarkOliveGreen2 => [188, 238, 104], + Colour::DarkOliveGreen3 => [162, 205, 90], + Colour::DarkOliveGreen4 => [110, 139, 61], + Colour::Khaki1 => [255, 246, 143], + Colour::Khaki2 => [238, 230, 133], + Colour::Khaki3 => [205, 198, 115], + Colour::Khaki4 => [139, 134, 78], + Colour::LightGoldenrod1 => [255, 236, 139], + Colour::LightGoldenrod2 => [238, 220, 130], + Colour::LightGoldenrod3 => [205, 190, 112], + Colour::LightGoldenrod4 => [139, 129, 76], + Colour::LightYellow1 => [255, 255, 224], + Colour::LightYellow2 => [238, 238, 209], + Colour::LightYellow3 => [205, 205, 180], + Colour::LightYellow4 => [139, 139, 122], + Colour::Yellow1 => [255, 255, 0], + Colour::Yellow2 => [238, 238, 0], + Colour::Yellow3 => [205, 205, 0], + Colour::Yellow4 => [139, 139, 0], + Colour::Gold1 => [255, 215, 0], + Colour::Gold2 => [238, 201, 0], + Colour::Gold3 => [205, 173, 0], + Colour::Gold4 => [139, 117, 0], + Colour::Goldenrod1 => [255, 193, 37], + Colour::Goldenrod2 => [238, 180, 34], + Colour::Goldenrod3 => [205, 155, 29], + Colour::Goldenrod4 => [139, 105, 20], + Colour::DarkGoldenrod1 => [255, 185, 15], + Colour::DarkGoldenrod2 => [238, 173, 14], + Colour::DarkGoldenrod3 => [205, 149, 12], + Colour::DarkGoldenrod4 => [139, 101, 8], + Colour::RosyBrown1 => [255, 193, 193], + Colour::RosyBrown2 => [238, 180, 180], + Colour::RosyBrown3 => [205, 155, 155], + Colour::RosyBrown4 => [139, 105, 105], + Colour::IndianRed1 => [255, 106, 106], + Colour::IndianRed2 => [238, 99, 99], + Colour::IndianRed3 => [205, 85, 85], + Colour::IndianRed4 => [139, 58, 58], + Colour::Sienna1 => [255, 130, 71], + Colour::Sienna2 => [238, 121, 66], + Colour::Sienna3 => [205, 104, 57], + Colour::Sienna4 => [139, 71, 38], + Colour::Burlywood1 => [255, 211, 155], + Colour::Burlywood2 => [238, 197, 145], + Colour::Burlywood3 => [205, 170, 125], + Colour::Burlywood4 => [139, 115, 85], + Colour::Wheat1 => [255, 231, 186], + Colour::Wheat2 => [238, 216, 174], + Colour::Wheat3 => [205, 186, 150], + Colour::Wheat4 => [139, 126, 102], + Colour::Tan1 => [255, 165, 79], + Colour::Tan2 => [238, 154, 73], + Colour::Tan3 => [205, 133, 63], + Colour::Tan4 => [139, 90, 43], + Colour::Chocolate1 => [255, 127, 36], + Colour::Chocolate2 => [238, 118, 33], + Colour::Chocolate3 => [205, 102, 29], + Colour::Chocolate4 => [139, 69, 19], + Colour::Firebrick1 => [255, 48, 48], + Colour::Firebrick2 => [238, 44, 44], + Colour::Firebrick3 => [205, 38, 38], + Colour::Firebrick4 => [139, 26, 26], + Colour::Brown1 => [255, 64, 64], + Colour::Brown2 => [238, 59, 59], + Colour::Brown3 => [205, 51, 51], + Colour::Brown4 => [139, 35, 35], + Colour::Salmon1 => [255, 140, 105], + Colour::Salmon2 => [238, 130, 98], + Colour::Salmon3 => [205, 112, 84], + Colour::Salmon4 => [139, 76, 57], + Colour::LightSalmon1 => [255, 160, 122], + Colour::LightSalmon2 => [238, 149, 114], + Colour::LightSalmon3 => [205, 129, 98], + Colour::LightSalmon4 => [139, 87, 66], + Colour::Orange1 => [255, 165, 0], + Colour::Orange2 => [238, 154, 0], + Colour::Orange3 => [205, 133, 0], + Colour::Orange4 => [139, 90, 0], + Colour::DarkOrange1 => [255, 127, 0], + Colour::DarkOrange2 => [238, 118, 0], + Colour::DarkOrange3 => [205, 102, 0], + Colour::DarkOrange4 => [139, 69, 0], + Colour::Coral1 => [255, 114, 86], + Colour::Coral2 => [238, 106, 80], + Colour::Coral3 => [205, 91, 69], + Colour::Coral4 => [139, 62, 47], + Colour::Tomato1 => [255, 99, 71], + Colour::Tomato2 => [238, 92, 66], + Colour::Tomato3 => [205, 79, 57], + Colour::Tomato4 => [139, 54, 38], + Colour::OrangeRed1 => [255, 69, 0], + Colour::OrangeRed2 => [238, 64, 0], + Colour::OrangeRed3 => [205, 55, 0], + Colour::OrangeRed4 => [139, 37, 0], + Colour::Red1 => [255, 0, 0], + Colour::Red2 => [238, 0, 0], + Colour::Red3 => [205, 0, 0], + Colour::Red4 => [139, 0, 0], + Colour::DeepPink1 => [255, 20, 147], + Colour::DeepPink2 => [238, 18, 137], + Colour::DeepPink3 => [205, 16, 118], + Colour::DeepPink4 => [139, 10, 80], + Colour::HotPink1 => [255, 110, 180], + Colour::HotPink2 => [238, 106, 167], + Colour::HotPink3 => [205, 96, 144], + Colour::HotPink4 => [139, 58, 98], + Colour::Pink1 => [255, 181, 197], + Colour::Pink2 => [238, 169, 184], + Colour::Pink3 => [205, 145, 158], + Colour::Pink4 => [139, 99, 108], + Colour::LightPink1 => [255, 174, 185], + Colour::LightPink2 => [238, 162, 173], + Colour::LightPink3 => [205, 140, 149], + Colour::LightPink4 => [139, 95, 101], + Colour::PaleVioletRed1 => [255, 130, 171], + Colour::PaleVioletRed2 => [238, 121, 159], + Colour::PaleVioletRed3 => [205, 104, 137], + Colour::PaleVioletRed4 => [139, 71, 93], + Colour::Maroon1 => [255, 52, 179], + Colour::Maroon2 => [238, 48, 167], + Colour::Maroon3 => [205, 41, 144], + Colour::Maroon4 => [139, 28, 98], + Colour::VioletRed1 => [255, 62, 150], + Colour::VioletRed2 => [238, 58, 140], + Colour::VioletRed3 => [205, 50, 120], + Colour::VioletRed4 => [139, 34, 82], + Colour::Magenta1 => [255, 0, 255], + Colour::Magenta2 => [238, 0, 238], + Colour::Magenta3 => [205, 0, 205], + Colour::Magenta4 => [139, 0, 139], + Colour::Orchid1 => [255, 131, 250], + Colour::Orchid2 => [238, 122, 233], + Colour::Orchid3 => [205, 105, 201], + Colour::Orchid4 => [139, 71, 137], + Colour::Plum1 => [255, 187, 255], + Colour::Plum2 => [238, 174, 238], + Colour::Plum3 => [205, 150, 205], + Colour::Plum4 => [139, 102, 139], + Colour::MediumOrchid1 => [224, 102, 255], + Colour::MediumOrchid2 => [209, 95, 238], + Colour::MediumOrchid3 => [180, 82, 205], + Colour::MediumOrchid4 => [122, 55, 139], + Colour::DarkOrchid1 => [191, 62, 255], + Colour::DarkOrchid2 => [178, 58, 238], + Colour::DarkOrchid3 => [154, 50, 205], + Colour::DarkOrchid4 => [104, 34, 139], + Colour::Purple1 => [155, 48, 255], + Colour::Purple2 => [145, 44, 238], + Colour::Purple3 => [125, 38, 205], + Colour::Purple4 => [85, 26, 139], + Colour::MediumPurple1 => [171, 130, 255], + Colour::MediumPurple2 => [159, 121, 238], + Colour::MediumPurple3 => [137, 104, 205], + Colour::MediumPurple4 => [93, 71, 139], + Colour::Thistle1 => [255, 225, 255], + Colour::Thistle2 => [238, 210, 238], + Colour::Thistle3 => [205, 181, 205], + Colour::Thistle4 => [139, 123, 139], + Colour::Gray0 => [0, 0, 0], + Colour::Gray1 => [3, 3, 3], + Colour::Gray2 => [5, 5, 5], + Colour::Gray3 => [8, 8, 8], + Colour::Gray4 => [10, 10, 10], + Colour::Gray5 => [13, 13, 13], + Colour::Gray6 => [15, 15, 15], + Colour::Gray7 => [18, 18, 18], + Colour::Gray8 => [20, 20, 20], + Colour::Gray9 => [23, 23, 23], + Colour::Gray10 => [26, 26, 26], + Colour::Gray11 => [28, 28, 28], + Colour::Gray12 => [31, 31, 31], + Colour::Gray13 => [33, 33, 33], + Colour::Gray14 => [36, 36, 36], + Colour::Gray15 => [38, 38, 38], + Colour::Gray16 => [41, 41, 41], + Colour::Gray17 => [43, 43, 43], + Colour::Gray18 => [46, 46, 46], + Colour::Gray19 => [48, 48, 48], + Colour::Gray20 => [51, 51, 51], + Colour::Gray21 => [54, 54, 54], + Colour::Gray22 => [56, 56, 56], + Colour::Gray23 => [59, 59, 59], + Colour::Gray24 => [61, 61, 61], + Colour::Gray25 => [64, 64, 64], + Colour::Gray26 => [66, 66, 66], + Colour::Gray27 => [69, 69, 69], + Colour::Gray28 => [71, 71, 71], + Colour::Gray29 => [74, 74, 74], + Colour::Gray30 => [77, 77, 77], + Colour::Gray31 => [79, 79, 79], + Colour::Gray32 => [82, 82, 82], + Colour::Gray33 => [84, 84, 84], + Colour::Gray34 => [87, 87, 87], + Colour::Gray35 => [89, 89, 89], + Colour::Gray36 => [92, 92, 92], + Colour::Gray37 => [94, 94, 94], + Colour::Gray38 => [97, 97, 97], + Colour::Gray39 => [99, 99, 99], + Colour::Gray40 => [102, 102, 102], + Colour::Gray41 => [105, 105, 105], + Colour::Gray42 => [107, 107, 107], + Colour::Gray43 => [110, 110, 110], + Colour::Gray44 => [112, 112, 112], + Colour::Gray45 => [115, 115, 115], + Colour::Gray46 => [117, 117, 117], + Colour::Gray47 => [120, 120, 120], + Colour::Gray48 => [122, 122, 122], + Colour::Gray49 => [125, 125, 125], + Colour::Gray50 => [127, 127, 127], + Colour::Gray51 => [130, 130, 130], + Colour::Gray52 => [133, 133, 133], + Colour::Gray53 => [135, 135, 135], + Colour::Gray54 => [138, 138, 138], + Colour::Gray55 => [140, 140, 140], + Colour::Gray56 => [143, 143, 143], + Colour::Gray57 => [145, 145, 145], + Colour::Gray58 => [148, 148, 148], + Colour::Gray59 => [150, 150, 150], + Colour::Gray60 => [153, 153, 153], + Colour::Gray61 => [156, 156, 156], + Colour::Gray62 => [158, 158, 158], + Colour::Gray63 => [161, 161, 161], + Colour::Gray64 => [163, 163, 163], + Colour::Gray65 => [166, 166, 166], + Colour::Gray66 => [168, 168, 168], + Colour::Gray67 => [171, 171, 171], + Colour::Gray68 => [173, 173, 173], + Colour::Gray69 => [176, 176, 176], + Colour::Gray70 => [179, 179, 179], + Colour::Gray71 => [181, 181, 181], + Colour::Gray72 => [184, 184, 184], + Colour::Gray73 => [186, 186, 186], + Colour::Gray74 => [189, 189, 189], + Colour::Gray75 => [191, 191, 191], + Colour::Gray76 => [194, 194, 194], + Colour::Gray77 => [196, 196, 196], + Colour::Gray78 => [199, 199, 199], + Colour::Gray79 => [201, 201, 201], + Colour::Gray80 => [204, 204, 204], + Colour::Gray81 => [207, 207, 207], + Colour::Gray82 => [209, 209, 209], + Colour::Gray83 => [212, 212, 212], + Colour::Gray84 => [214, 214, 214], + Colour::Gray85 => [217, 217, 217], + Colour::Gray86 => [219, 219, 219], + Colour::Gray87 => [222, 222, 222], + Colour::Gray88 => [224, 224, 224], + Colour::Gray89 => [227, 227, 227], + Colour::Gray90 => [229, 229, 229], + Colour::Gray91 => [232, 232, 232], + Colour::Gray92 => [235, 235, 235], + Colour::Gray93 => [237, 237, 237], + Colour::Gray94 => [240, 240, 240], + Colour::Gray95 => [242, 242, 242], + Colour::Gray96 => [245, 245, 245], + Colour::Gray97 => [247, 247, 247], + Colour::Gray98 => [250, 250, 250], + Colour::Gray99 => [252, 252, 252], + Colour::Gray100 => [255, 255, 255], + Colour::DarkGray => [169, 169, 169], + Colour::DarkBlue => [0, 0, 139], + Colour::DarkCyan => [0, 139, 139], + Colour::DarkMagenta => [139, 0, 139], + Colour::DarkRed => [139, 0, 0], + Colour::LightGreen => [144, 238, 144], + Colour::Crimson => [220, 20, 60], + Colour::Indigo => [75, 0, 130], + Colour::Olive => [128, 128, 0], + Colour::RebeccaPurple => [102, 51, 153], + Colour::Silver => [192, 192, 192], + Colour::Teal => [0, 128, 128], + } + } +} diff --git a/image_colour_sum/src/xkcd_colours.rs b/image_colour_sum/src/xkcd_colours.rs new file mode 100644 index 0000000..a1f3067 --- /dev/null +++ b/image_colour_sum/src/xkcd_colours.rs @@ -0,0 +1,2865 @@ +#![allow(dead_code)] +use std::slice::Iter; +pub const NUM_COLOURS: usize = 949; +#[derive(PartialEq, Clone, Copy, Hash, Eq, Debug)] +pub enum Colour { + CloudyBlue, + DarkPastelGreen, + Dust, + ElectricLime, + FreshGreen, + LightEggplant, + NastyGreen, + ReallyLightBlue, + Tea, + WarmPurple, + YellowishTan, + Cement, + DarkGrassGreen, + DustyTeal, + GreyTeal, + MacaroniAndCheese, + PinkishTan, + Spruce, + StrongBlue, + ToxicGreen, + WindowsBlue, + BlueBlue, + BlueWithAHintOfPurple, + Booger, + BrightSeaGreen, + DarkGreenBlue, + DeepTurquoise, + GreenTeal, + StrongPink, + Bland, + DeepAqua, + LavenderPink, + LightMossGreen, + LightSeafoamGreen, + OliveYellow, + PigPink, + DeepLilac, + Desert, + DustyLavender, + PurpleyGrey, + Purply, + CandyPink, + LightPastelGreen, + BoringGreen, + KiwiGreen, + LightGreyGreen, + OrangePink, + TeaGreen, + VeryLightBrown, + EggShell, + EggplantPurple, + PowderPink, + ReddishGrey, + BabyShitBrown, + Liliac, + StormyBlue, + UglyBrown, + Custard, + DarkishPink, + DeepBrown, + GreenishBeige, + Manilla, + OffBlue, + BattleshipGrey, + BrownyGreen, + Bruise, + KelleyGreen, + SicklyYellow, + SunnyYellow, + Azul, + Darkgreen, + GreenAndYellow, + Lichen, + LightLightGreen, + PaleGold, + SunYellow, + TanGreen, + Burple, + Butterscotch, + Toupe, + DarkCream, + IndianRed, + LightLavendar, + PoisonGreen, + BabyPukeGreen, + BrightYellowGreen, + CharcoalGrey, + Squash, + Cinnamon, + LightPeaGreen, + RadioactiveGreen, + RawSienna, + BabyPurple, + Cocoa, + LightRoyalBlue, + Orangeish, + RustBrown, + SandBrown, + Swamp, + TealishGreen, + BurntSiena, + Camo, + DuskBlue, + Fern, + OldRose, + PaleLightGreen, + PeachyPink, + RosyPink, + LightBluishGreen, + LightBrightGreen, + LightNeonGreen, + LightSeafoam, + TiffanyBlue, + WashedOutGreen, + BrownyOrange, + NiceBlue, + Sapphire, + GreyishTeal, + OrangeyYellow, + Parchment, + Straw, + VeryDarkBrown, + Terracota, + UglyBlue, + ClearBlue, + Creme, + FoamGreen, + GreyAndGreen, + LightGold, + SeafoamBlue, + Topaz, + VioletPink, + Wintergreen, + YellowTan, + DarkFuchsia, + IndigoBlue, + LightYellowishGreen, + PaleMagenta, + RichPurple, + SunflowerYellow, + GreenAndBlue, + Leather, + RacingGreen, + VividPurple, + DarkRoyalBlue, + Hazel, + MutedPink, + BoogerGreen, + Canary, + CoolGrey, + DarkTaupe, + DarkishPurple, + TrueGreen, + CoralPink, + DarkSage, + DarkSlateBlue, + FlatBlue, + Mushroom, + RichBlue, + DirtyPurple, + Greenblue, + IckyGreen, + LightKhaki, + WarmBlue, + DarkHotPink, + DeepSeaBlue, + Carmine, + DarkYellowGreen, + PalePeach, + PlumPurple, + GoldenRod, + NeonRed, + OldPink, + VeryPaleBlue, + BloodOrange, + Grapefruit, + SandYellow, + ClayBrown, + DarkBlueGrey, + FlatGreen, + LightGreenBlue, + WarmPink, + DodgerBlue, + GrossGreen, + Ice, + MetallicBlue, + PaleSalmon, + SapGreen, + Algae, + BlueyGrey, + GreenyGrey, + HighlighterGreen, + LightLightBlue, + LightMint, + RawUmber, + VividBlue, + DeepLavender, + DullTeal, + LightGreenishBlue, + MudGreen, + Pinky, + RedWine, + ShitGreen, + TanBrown, + Darkblue, + Rosa, + Lipstick, + PaleMauve, + Claret, + Dandelion, + Orangered, + PoopGreen, + Ruby, + Dark, + GreenishTurquoise, + PastelRed, + PissYellow, + BrightCyan, + DarkCoral, + AlgaeGreen, + DarkishRed, + ReddyBrown, + BlushPink, + CamouflageGreen, + LawnGreen, + Putty, + VibrantBlue, + DarkSand, + PurpleAndBlue, + Saffron, + Twilight, + WarmBrown, + Bluegrey, + BubbleGumPink, + DuckEggBlue, + GreenishCyan, + Petrol, + Royal, + Butter, + DustyOrange, + OffYellow, + PaleOliveGreen, + Orangish, + Leaf, + LightBlueGrey, + DriedBlood, + LightishPurple, + RustyRed, + LavenderBlue, + LightGrassGreen, + LightMintGreen, + Sunflower, + Velvet, + BrickOrange, + LightishRed, + PureBlue, + TwilightBlue, + VioletRed, + YellowyBrown, + Carnation, + MuddyYellow, + DarkSeafoamGreen, + DeepRose, + DustyRed, + GreyAndBlue, + LemonLime, + PurpleAndPink, + BrownYellow, + PurpleBrown, + Wisteria, + BananaYellow, + LipstickRed, + WaterBlue, + BrownGrey, + VibrantPurple, + BabyGreen, + BarfGreen, + EggshellBlue, + SandyYellow, + CoolGreen, + Pale, + BlueAndGrey, + HotMagenta, + Greyblue, + Purpley, + BabyShitGreen, + BrownishPink, + DarkAquamarine, + Diarrhea, + LightMustard, + PaleSkyBlue, + TurtleGreen, + BrightOlive, + DarkGreyBlue, + GreenyBrown, + LemonGreen, + LightPeriwinkle, + SeaweedGreen, + SunshineYellow, + UglyPurple, + MediumPink, + PukeBrown, + VeryLightPink, + Viridian, + Bile, + FadedYellow, + VeryPaleGreen, + VibrantGreen, + BrightLime, + Spearmint, + LightAquamarine, + LightSage, + Yellowgreen, + BabyPoo, + DarkSeafoam, + DeepTeal, + Heather, + RustOrange, + DirtyBlue, + FernGreen, + BrightLilac, + WeirdGreen, + PeacockBlue, + AvocadoGreen, + FadedOrange, + GrapePurple, + HotGreen, + LimeYellow, + Mango, + Shamrock, + Bubblegum, + PurplishBrown, + VomitYellow, + PaleCyan, + KeyLime, + TomatoRed, + Lightgreen, + Merlot, + NightBlue, + PurpleishPink, + Apple, + BabyPoopGreen, + GreenApple, + Heliotrope, + YellowAndGreen, + AlmostBlack, + CoolBlue, + LeafyGreen, + MustardBrown, + Dusk, + DullBrown, + FrogGreen, + VividGreen, + BrightLightGreen, + FluroGreen, + Kiwi, + Seaweed, + NavyGreen, + UltramarineBlue, + Iris, + PastelOrange, + YellowishOrange, + Perrywinkle, + Tealish, + DarkPlum, + Pear, + PinkishOrange, + MidnightPurple, + LightUrple, + DarkMint, + GreenishTan, + LightBurgundy, + TurquoiseBlue, + UglyPink, + Sandy, + ElectricPink, + MutedPurple, + MidGreen, + Greyish, + NeonYellow, + Banana, + CarnationPink, + Tomato, + Sea, + MuddyBrown, + TurquoiseGreen, + Buff, + Fawn, + MutedBlue, + PaleRose, + DarkMintGreen, + Amethyst, + BlueAndGreen, + Chestnut, + SickGreen, + Pea, + RustyOrange, + Stone, + RoseRed, + PaleAqua, + DeepOrange, + Earth, + MossyGreen, + GrassyGreen, + PaleLimeGreen, + LightGreyBlue, + PaleGrey, + Asparagus, + Blueberry, + PurpleRed, + PaleLime, + GreenishTeal, + Caramel, + DeepMagenta, + LightPeach, + MilkChocolate, + Ocher, + OffGreen, + PurplyPink, + Lightblue, + DuskyBlue, + Golden, + LightBeige, + ButterYellow, + DuskyPurple, + FrenchBlue, + UglyYellow, + GreenyYellow, + OrangishRed, + ShamrockGreen, + OrangishBrown, + TreeGreen, + DeepViolet, + Gunmetal, + BlueAndPurple, + Cherry, + SandyBrown, + WarmGrey, + DarkIndigo, + Midnight, + BlueyGreen, + GreyPink, + SoftPurple, + Blood, + BrownRed, + MediumGrey, + Berry, + Poo, + PurpleyPink, + LightSalmon, + Snot, + EasterPurple, + LightYellowGreen, + DarkNavyBlue, + Drab, + LightRose, + Rouge, + PurplishRed, + SlimeGreen, + BabyPoop, + IrishGreen, + PinkAndPurple, + DarkNavy, + GreenyBlue, + LightPlum, + PinkishGrey, + DirtyOrange, + RustRed, + PaleLilac, + OrangeyRed, + PrimaryBlue, + KermitGreen, + BrownishPurple, + MurkyGreen, + Wheat, + VeryDarkPurple, + BottleGreen, + Watermelon, + DeepSkyBlue, + FireEngineRed, + YellowOchre, + PumpkinOrange, + PaleOlive, + LightLilac, + LightishGreen, + CarolinaBlue, + Mulberry, + ShockingPink, + Auburn, + BrightLimeGreen, + Celadon, + PinkishBrown, + PooBrown, + BrightSkyBlue, + Celery, + DirtBrown, + Strawberry, + DarkLime, + Copper, + MediumBrown, + MutedGreen, + RobinsEgg, + BrightAqua, + BrightLavender, + Ivory, + VeryLightPurple, + LightNavy, + PinkRed, + OliveBrown, + PoopBrown, + MustardGreen, + OceanGreen, + VeryDarkBlue, + DustyGreen, + LightNavyBlue, + MintyGreen, + Adobe, + Barney, + JadeGreen, + BrightLightBlue, + LightLime, + DarkKhaki, + OrangeYellow, + Ocre, + Maize, + FadedPink, + BritishRacingGreen, + Sandstone, + MudBrown, + LightSeaGreen, + RobinEggBlue, + AquaMarine, + DarkSeaGreen, + SoftPink, + OrangeyBrown, + CherryRed, + BurntYellow, + BrownishGrey, + Camel, + PurplishGrey, + Marine, + GreyishPink, + PaleTurquoise, + PastelYellow, + BlueyPurple, + CanaryYellow, + FadedRed, + Sepia, + Coffee, + BrightMagenta, + Mocha, + Ecru, + Purpleish, + Cranberry, + DarkishGreen, + BrownOrange, + DuskyRose, + Melon, + SicklyGreen, + Silver, + PurplyBlue, + PurpleishBlue, + HospitalGreen, + ShitBrown, + MidBlue, + Amber, + EasterGreen, + SoftBlue, + CeruleanBlue, + GoldenBrown, + BrightTurquoise, + RedPink, + RedPurple, + GreyishBrown, + Vermillion, + Russet, + SteelGrey, + LighterPurple, + BrightViolet, + PrussianBlue, + SlateGreen, + DirtyPink, + DarkBlueGreen, + Pine, + YellowyGreen, + DarkGold, + Bluish, + DarkishBlue, + DullRed, + PinkyRed, + Bronze, + PaleTeal, + MilitaryGreen, + BarbiePink, + BubblegumPink, + PeaSoupGreen, + DarkMustard, + Shit, + MediumPurple, + VeryDarkGreen, + Dirt, + DuskyPink, + RedViolet, + LemonYellow, + Pistachio, + DullYellow, + DarkLimeGreen, + DenimBlue, + TealBlue, + LightishBlue, + PurpleyBlue, + LightIndigo, + SwampGreen, + BrownGreen, + DarkMaroon, + HotPurple, + DarkForestGreen, + FadedBlue, + DrabGreen, + LightLimeGreen, + SnotGreen, + Yellowish, + LightBlueGreen, + Bordeaux, + LightMauve, + Ocean, + Marigold, + MuddyGreen, + DullOrange, + Steel, + ElectricPurple, + FluorescentGreen, + YellowishBrown, + Blush, + SoftGreen, + BrightOrange, + Lemon, + PurpleGrey, + AcidGreen, + PaleLavender, + VioletBlue, + LightForestGreen, + BurntRed, + KhakiGreen, + Cerise, + FadedPurple, + Apricot, + DarkOliveGreen, + GreyBrown, + GreenGrey, + TrueBlue, + PaleViolet, + PeriwinkleBlue, + LightSkyBlue, + Blurple, + GreenBrown, + Bluegreen, + BrightTeal, + BrownishYellow, + PeaSoup, + Forest, + BarneyPurple, + Ultramarine, + Purplish, + PukeYellow, + BluishGrey, + DarkPeriwinkle, + DarkLilac, + Reddish, + LightMaroon, + DustyPurple, + TerraCotta, + Avocado, + MarineBlue, + TealGreen, + SlateGrey, + LighterGreen, + ElectricGreen, + DustyBlue, + GoldenYellow, + BrightYellow, + LightLavender, + Umber, + Poop, + DarkPeach, + JungleGreen, + Eggshell, + Denim, + YellowBrown, + DullPurple, + ChocolateBrown, + WineRed, + NeonBlue, + DirtyGreen, + LightTan, + IceBlue, + CadetBlue, + DarkMauve, + VeryLightBlue, + GreyPurple, + PastelPink, + VeryLightGreen, + DarkSkyBlue, + Evergreen, + DullPink, + Aubergine, + Mahogany, + ReddishOrange, + DeepGreen, + VomitGreen, + PurplePink, + DustyPink, + FadedGreen, + CamoGreen, + PinkyPurple, + PinkPurple, + BrownishRed, + DarkRose, + Mud, + Brownish, + EmeraldGreen, + PaleBrown, + DullBlue, + BurntUmber, + MediumGreen, + Clay, + LightAqua, + LightOliveGreen, + BrownishOrange, + DarkAqua, + PurplishPink, + DarkSalmon, + GreenishGrey, + Jade, + UglyGreen, + DarkBeige, + Emerald, + PaleRed, + LightMagenta, + Sky, + LightCyan, + YellowOrange, + ReddishPurple, + ReddishPink, + Orchid, + DirtyYellow, + OrangeRed, + DeepRed, + OrangeBrown, + CobaltBlue, + NeonPink, + RosePink, + GreyishPurple, + Raspberry, + AquaGreen, + SalmonPink, + Tangerine, + BrownishGreen, + RedBrown, + GreenishBrown, + Pumpkin, + PineGreen, + Charcoal, + BabyPink, + Cornflower, + BlueViolet, + Chocolate, + GreyishGreen, + Scarlet, + GreenYellow, + DarkOlive, + Sienna, + PastelPurple, + Terracotta, + AquaBlue, + SageGreen, + BloodRed, + DeepPink, + Grass, + Moss, + PastelBlue, + BluishGreen, + GreenBlue, + DarkTan, + GreenishBlue, + PaleOrange, + Vomit, + ForrestGreen, + DarkLavender, + DarkViolet, + PurpleBlue, + DarkCyan, + OliveDrab, + Pinkish, + Cobalt, + NeonPurple, + LightTurquoise, + AppleGreen, + DullGreen, + Wine, + PowderBlue, + OffWhite, + ElectricBlue, + DarkTurquoise, + BluePurple, + Azure, + BrightRed, + PinkishRed, + CornflowerBlue, + LightOlive, + Grape, + GreyishBlue, + PurplishBlue, + YellowishGreen, + GreenishYellow, + MediumBlue, + DustyRose, + LightViolet, + MidnightBlue, + BluishPurple, + RedOrange, + DarkMagenta, + Greenish, + OceanBlue, + Coral, + Cream, + ReddishBrown, + BurntSienna, + Brick, + Sage, + GreyGreen, + White, + RobinsEggBlue, + MossGreen, + SteelBlue, + Eggplant, + LightYellow, + LeafGreen, + LightGrey, + Puke, + PinkishPurple, + SeaBlue, + PalePurple, + SlateBlue, + BlueGrey, + HunterGreen, + Fuchsia, + Crimson, + PaleYellow, + Ochre, + MustardYellow, + LightRed, + Cerulean, + PalePink, + DeepBlue, + Rust, + LightTeal, + Slate, + Goldenrod, + DarkYellow, + DarkGrey, + ArmyGreen, + GreyBlue, + Seafoam, + Puce, + SpringGreen, + DarkOrange, + Sand, + PastelGreen, + Mint, + LightOrange, + BrightPink, + Chartreuse, + DeepPurple, + DarkBrown, + Taupe, + PeaGreen, + PukeGreen, + KellyGreen, + SeafoamGreen, + BlueGreen, + Khaki, + Burgundy, + DarkTeal, + BrickRed, + RoyalPurple, + Plum, + MintGreen, + Gold, + BabyBlue, + YellowGreen, + BrightPurple, + DarkRed, + PaleBlue, + GrassGreen, + Navy, + Aquamarine, + BurntOrange, + NeonGreen, + BrightBlue, + Rose, + LightPink, + Mustard, + Indigo, + Lime, + SeaGreen, + Periwinkle, + DarkPink, + OliveGreen, + Peach, + PaleGreen, + LightBrown, + HotPink, + Black, + Lilac, + NavyBlue, + RoyalBlue, + Beige, + Salmon, + Olive, + Maroon, + BrightGreen, + DarkPurple, + Mauve, + ForestGreen, + Aqua, + Cyan, + Tan, + DarkBlue, + Lavender, + Turquoise, + DarkGreen, + Violet, + LightPurple, + LimeGreen, + Grey, + SkyBlue, + Yellow, + Magenta, + LightGreen, + Orange, + Teal, + LightBlue, + Red, + Brown, + Pink, + Blue, + Green, + Purple, +} + +impl Colour { + pub fn iterator() -> Iter<'static, Colour> { + static COLOURS: [Colour; 949] = [ + Colour::CloudyBlue, + Colour::DarkPastelGreen, + Colour::Dust, + Colour::ElectricLime, + Colour::FreshGreen, + Colour::LightEggplant, + Colour::NastyGreen, + Colour::ReallyLightBlue, + Colour::Tea, + Colour::WarmPurple, + Colour::YellowishTan, + Colour::Cement, + Colour::DarkGrassGreen, + Colour::DustyTeal, + Colour::GreyTeal, + Colour::MacaroniAndCheese, + Colour::PinkishTan, + Colour::Spruce, + Colour::StrongBlue, + Colour::ToxicGreen, + Colour::WindowsBlue, + Colour::BlueBlue, + Colour::BlueWithAHintOfPurple, + Colour::Booger, + Colour::BrightSeaGreen, + Colour::DarkGreenBlue, + Colour::DeepTurquoise, + Colour::GreenTeal, + Colour::StrongPink, + Colour::Bland, + Colour::DeepAqua, + Colour::LavenderPink, + Colour::LightMossGreen, + Colour::LightSeafoamGreen, + Colour::OliveYellow, + Colour::PigPink, + Colour::DeepLilac, + Colour::Desert, + Colour::DustyLavender, + Colour::PurpleyGrey, + Colour::Purply, + Colour::CandyPink, + Colour::LightPastelGreen, + Colour::BoringGreen, + Colour::KiwiGreen, + Colour::LightGreyGreen, + Colour::OrangePink, + Colour::TeaGreen, + Colour::VeryLightBrown, + Colour::EggShell, + Colour::EggplantPurple, + Colour::PowderPink, + Colour::ReddishGrey, + Colour::BabyShitBrown, + Colour::Liliac, + Colour::StormyBlue, + Colour::UglyBrown, + Colour::Custard, + Colour::DarkishPink, + Colour::DeepBrown, + Colour::GreenishBeige, + Colour::Manilla, + Colour::OffBlue, + Colour::BattleshipGrey, + Colour::BrownyGreen, + Colour::Bruise, + Colour::KelleyGreen, + Colour::SicklyYellow, + Colour::SunnyYellow, + Colour::Azul, + Colour::Darkgreen, + Colour::GreenAndYellow, + Colour::Lichen, + Colour::LightLightGreen, + Colour::PaleGold, + Colour::SunYellow, + Colour::TanGreen, + Colour::Burple, + Colour::Butterscotch, + Colour::Toupe, + Colour::DarkCream, + Colour::IndianRed, + Colour::LightLavendar, + Colour::PoisonGreen, + Colour::BabyPukeGreen, + Colour::BrightYellowGreen, + Colour::CharcoalGrey, + Colour::Squash, + Colour::Cinnamon, + Colour::LightPeaGreen, + Colour::RadioactiveGreen, + Colour::RawSienna, + Colour::BabyPurple, + Colour::Cocoa, + Colour::LightRoyalBlue, + Colour::Orangeish, + Colour::RustBrown, + Colour::SandBrown, + Colour::Swamp, + Colour::TealishGreen, + Colour::BurntSiena, + Colour::Camo, + Colour::DuskBlue, + Colour::Fern, + Colour::OldRose, + Colour::PaleLightGreen, + Colour::PeachyPink, + Colour::RosyPink, + Colour::LightBluishGreen, + Colour::LightBrightGreen, + Colour::LightNeonGreen, + Colour::LightSeafoam, + Colour::TiffanyBlue, + Colour::WashedOutGreen, + Colour::BrownyOrange, + Colour::NiceBlue, + Colour::Sapphire, + Colour::GreyishTeal, + Colour::OrangeyYellow, + Colour::Parchment, + Colour::Straw, + Colour::VeryDarkBrown, + Colour::Terracota, + Colour::UglyBlue, + Colour::ClearBlue, + Colour::Creme, + Colour::FoamGreen, + Colour::GreyAndGreen, + Colour::LightGold, + Colour::SeafoamBlue, + Colour::Topaz, + Colour::VioletPink, + Colour::Wintergreen, + Colour::YellowTan, + Colour::DarkFuchsia, + Colour::IndigoBlue, + Colour::LightYellowishGreen, + Colour::PaleMagenta, + Colour::RichPurple, + Colour::SunflowerYellow, + Colour::GreenAndBlue, + Colour::Leather, + Colour::RacingGreen, + Colour::VividPurple, + Colour::DarkRoyalBlue, + Colour::Hazel, + Colour::MutedPink, + Colour::BoogerGreen, + Colour::Canary, + Colour::CoolGrey, + Colour::DarkTaupe, + Colour::DarkishPurple, + Colour::TrueGreen, + Colour::CoralPink, + Colour::DarkSage, + Colour::DarkSlateBlue, + Colour::FlatBlue, + Colour::Mushroom, + Colour::RichBlue, + Colour::DirtyPurple, + Colour::Greenblue, + Colour::IckyGreen, + Colour::LightKhaki, + Colour::WarmBlue, + Colour::DarkHotPink, + Colour::DeepSeaBlue, + Colour::Carmine, + Colour::DarkYellowGreen, + Colour::PalePeach, + Colour::PlumPurple, + Colour::GoldenRod, + Colour::NeonRed, + Colour::OldPink, + Colour::VeryPaleBlue, + Colour::BloodOrange, + Colour::Grapefruit, + Colour::SandYellow, + Colour::ClayBrown, + Colour::DarkBlueGrey, + Colour::FlatGreen, + Colour::LightGreenBlue, + Colour::WarmPink, + Colour::DodgerBlue, + Colour::GrossGreen, + Colour::Ice, + Colour::MetallicBlue, + Colour::PaleSalmon, + Colour::SapGreen, + Colour::Algae, + Colour::BlueyGrey, + Colour::GreenyGrey, + Colour::HighlighterGreen, + Colour::LightLightBlue, + Colour::LightMint, + Colour::RawUmber, + Colour::VividBlue, + Colour::DeepLavender, + Colour::DullTeal, + Colour::LightGreenishBlue, + Colour::MudGreen, + Colour::Pinky, + Colour::RedWine, + Colour::ShitGreen, + Colour::TanBrown, + Colour::Darkblue, + Colour::Rosa, + Colour::Lipstick, + Colour::PaleMauve, + Colour::Claret, + Colour::Dandelion, + Colour::Orangered, + Colour::PoopGreen, + Colour::Ruby, + Colour::Dark, + Colour::GreenishTurquoise, + Colour::PastelRed, + Colour::PissYellow, + Colour::BrightCyan, + Colour::DarkCoral, + Colour::AlgaeGreen, + Colour::DarkishRed, + Colour::ReddyBrown, + Colour::BlushPink, + Colour::CamouflageGreen, + Colour::LawnGreen, + Colour::Putty, + Colour::VibrantBlue, + Colour::DarkSand, + Colour::PurpleAndBlue, + Colour::Saffron, + Colour::Twilight, + Colour::WarmBrown, + Colour::Bluegrey, + Colour::BubbleGumPink, + Colour::DuckEggBlue, + Colour::GreenishCyan, + Colour::Petrol, + Colour::Royal, + Colour::Butter, + Colour::DustyOrange, + Colour::OffYellow, + Colour::PaleOliveGreen, + Colour::Orangish, + Colour::Leaf, + Colour::LightBlueGrey, + Colour::DriedBlood, + Colour::LightishPurple, + Colour::RustyRed, + Colour::LavenderBlue, + Colour::LightGrassGreen, + Colour::LightMintGreen, + Colour::Sunflower, + Colour::Velvet, + Colour::BrickOrange, + Colour::LightishRed, + Colour::PureBlue, + Colour::TwilightBlue, + Colour::VioletRed, + Colour::YellowyBrown, + Colour::Carnation, + Colour::MuddyYellow, + Colour::DarkSeafoamGreen, + Colour::DeepRose, + Colour::DustyRed, + Colour::GreyAndBlue, + Colour::LemonLime, + Colour::PurpleAndPink, + Colour::BrownYellow, + Colour::PurpleBrown, + Colour::Wisteria, + Colour::BananaYellow, + Colour::LipstickRed, + Colour::WaterBlue, + Colour::BrownGrey, + Colour::VibrantPurple, + Colour::BabyGreen, + Colour::BarfGreen, + Colour::EggshellBlue, + Colour::SandyYellow, + Colour::CoolGreen, + Colour::Pale, + Colour::BlueAndGrey, + Colour::HotMagenta, + Colour::Greyblue, + Colour::Purpley, + Colour::BabyShitGreen, + Colour::BrownishPink, + Colour::DarkAquamarine, + Colour::Diarrhea, + Colour::LightMustard, + Colour::PaleSkyBlue, + Colour::TurtleGreen, + Colour::BrightOlive, + Colour::DarkGreyBlue, + Colour::GreenyBrown, + Colour::LemonGreen, + Colour::LightPeriwinkle, + Colour::SeaweedGreen, + Colour::SunshineYellow, + Colour::UglyPurple, + Colour::MediumPink, + Colour::PukeBrown, + Colour::VeryLightPink, + Colour::Viridian, + Colour::Bile, + Colour::FadedYellow, + Colour::VeryPaleGreen, + Colour::VibrantGreen, + Colour::BrightLime, + Colour::Spearmint, + Colour::LightAquamarine, + Colour::LightSage, + Colour::Yellowgreen, + Colour::BabyPoo, + Colour::DarkSeafoam, + Colour::DeepTeal, + Colour::Heather, + Colour::RustOrange, + Colour::DirtyBlue, + Colour::FernGreen, + Colour::BrightLilac, + Colour::WeirdGreen, + Colour::PeacockBlue, + Colour::AvocadoGreen, + Colour::FadedOrange, + Colour::GrapePurple, + Colour::HotGreen, + Colour::LimeYellow, + Colour::Mango, + Colour::Shamrock, + Colour::Bubblegum, + Colour::PurplishBrown, + Colour::VomitYellow, + Colour::PaleCyan, + Colour::KeyLime, + Colour::TomatoRed, + Colour::Lightgreen, + Colour::Merlot, + Colour::NightBlue, + Colour::PurpleishPink, + Colour::Apple, + Colour::BabyPoopGreen, + Colour::GreenApple, + Colour::Heliotrope, + Colour::YellowAndGreen, + Colour::AlmostBlack, + Colour::CoolBlue, + Colour::LeafyGreen, + Colour::MustardBrown, + Colour::Dusk, + Colour::DullBrown, + Colour::FrogGreen, + Colour::VividGreen, + Colour::BrightLightGreen, + Colour::FluroGreen, + Colour::Kiwi, + Colour::Seaweed, + Colour::NavyGreen, + Colour::UltramarineBlue, + Colour::Iris, + Colour::PastelOrange, + Colour::YellowishOrange, + Colour::Perrywinkle, + Colour::Tealish, + Colour::DarkPlum, + Colour::Pear, + Colour::PinkishOrange, + Colour::MidnightPurple, + Colour::LightUrple, + Colour::DarkMint, + Colour::GreenishTan, + Colour::LightBurgundy, + Colour::TurquoiseBlue, + Colour::UglyPink, + Colour::Sandy, + Colour::ElectricPink, + Colour::MutedPurple, + Colour::MidGreen, + Colour::Greyish, + Colour::NeonYellow, + Colour::Banana, + Colour::CarnationPink, + Colour::Tomato, + Colour::Sea, + Colour::MuddyBrown, + Colour::TurquoiseGreen, + Colour::Buff, + Colour::Fawn, + Colour::MutedBlue, + Colour::PaleRose, + Colour::DarkMintGreen, + Colour::Amethyst, + Colour::BlueAndGreen, + Colour::Chestnut, + Colour::SickGreen, + Colour::Pea, + Colour::RustyOrange, + Colour::Stone, + Colour::RoseRed, + Colour::PaleAqua, + Colour::DeepOrange, + Colour::Earth, + Colour::MossyGreen, + Colour::GrassyGreen, + Colour::PaleLimeGreen, + Colour::LightGreyBlue, + Colour::PaleGrey, + Colour::Asparagus, + Colour::Blueberry, + Colour::PurpleRed, + Colour::PaleLime, + Colour::GreenishTeal, + Colour::Caramel, + Colour::DeepMagenta, + Colour::LightPeach, + Colour::MilkChocolate, + Colour::Ocher, + Colour::OffGreen, + Colour::PurplyPink, + Colour::Lightblue, + Colour::DuskyBlue, + Colour::Golden, + Colour::LightBeige, + Colour::ButterYellow, + Colour::DuskyPurple, + Colour::FrenchBlue, + Colour::UglyYellow, + Colour::GreenyYellow, + Colour::OrangishRed, + Colour::ShamrockGreen, + Colour::OrangishBrown, + Colour::TreeGreen, + Colour::DeepViolet, + Colour::Gunmetal, + Colour::BlueAndPurple, + Colour::Cherry, + Colour::SandyBrown, + Colour::WarmGrey, + Colour::DarkIndigo, + Colour::Midnight, + Colour::BlueyGreen, + Colour::GreyPink, + Colour::SoftPurple, + Colour::Blood, + Colour::BrownRed, + Colour::MediumGrey, + Colour::Berry, + Colour::Poo, + Colour::PurpleyPink, + Colour::LightSalmon, + Colour::Snot, + Colour::EasterPurple, + Colour::LightYellowGreen, + Colour::DarkNavyBlue, + Colour::Drab, + Colour::LightRose, + Colour::Rouge, + Colour::PurplishRed, + Colour::SlimeGreen, + Colour::BabyPoop, + Colour::IrishGreen, + Colour::PinkAndPurple, + Colour::DarkNavy, + Colour::GreenyBlue, + Colour::LightPlum, + Colour::PinkishGrey, + Colour::DirtyOrange, + Colour::RustRed, + Colour::PaleLilac, + Colour::OrangeyRed, + Colour::PrimaryBlue, + Colour::KermitGreen, + Colour::BrownishPurple, + Colour::MurkyGreen, + Colour::Wheat, + Colour::VeryDarkPurple, + Colour::BottleGreen, + Colour::Watermelon, + Colour::DeepSkyBlue, + Colour::FireEngineRed, + Colour::YellowOchre, + Colour::PumpkinOrange, + Colour::PaleOlive, + Colour::LightLilac, + Colour::LightishGreen, + Colour::CarolinaBlue, + Colour::Mulberry, + Colour::ShockingPink, + Colour::Auburn, + Colour::BrightLimeGreen, + Colour::Celadon, + Colour::PinkishBrown, + Colour::PooBrown, + Colour::BrightSkyBlue, + Colour::Celery, + Colour::DirtBrown, + Colour::Strawberry, + Colour::DarkLime, + Colour::Copper, + Colour::MediumBrown, + Colour::MutedGreen, + Colour::RobinsEgg, + Colour::BrightAqua, + Colour::BrightLavender, + Colour::Ivory, + Colour::VeryLightPurple, + Colour::LightNavy, + Colour::PinkRed, + Colour::OliveBrown, + Colour::PoopBrown, + Colour::MustardGreen, + Colour::OceanGreen, + Colour::VeryDarkBlue, + Colour::DustyGreen, + Colour::LightNavyBlue, + Colour::MintyGreen, + Colour::Adobe, + Colour::Barney, + Colour::JadeGreen, + Colour::BrightLightBlue, + Colour::LightLime, + Colour::DarkKhaki, + Colour::OrangeYellow, + Colour::Ocre, + Colour::Maize, + Colour::FadedPink, + Colour::BritishRacingGreen, + Colour::Sandstone, + Colour::MudBrown, + Colour::LightSeaGreen, + Colour::RobinEggBlue, + Colour::AquaMarine, + Colour::DarkSeaGreen, + Colour::SoftPink, + Colour::OrangeyBrown, + Colour::CherryRed, + Colour::BurntYellow, + Colour::BrownishGrey, + Colour::Camel, + Colour::PurplishGrey, + Colour::Marine, + Colour::GreyishPink, + Colour::PaleTurquoise, + Colour::PastelYellow, + Colour::BlueyPurple, + Colour::CanaryYellow, + Colour::FadedRed, + Colour::Sepia, + Colour::Coffee, + Colour::BrightMagenta, + Colour::Mocha, + Colour::Ecru, + Colour::Purpleish, + Colour::Cranberry, + Colour::DarkishGreen, + Colour::BrownOrange, + Colour::DuskyRose, + Colour::Melon, + Colour::SicklyGreen, + Colour::Silver, + Colour::PurplyBlue, + Colour::PurpleishBlue, + Colour::HospitalGreen, + Colour::ShitBrown, + Colour::MidBlue, + Colour::Amber, + Colour::EasterGreen, + Colour::SoftBlue, + Colour::CeruleanBlue, + Colour::GoldenBrown, + Colour::BrightTurquoise, + Colour::RedPink, + Colour::RedPurple, + Colour::GreyishBrown, + Colour::Vermillion, + Colour::Russet, + Colour::SteelGrey, + Colour::LighterPurple, + Colour::BrightViolet, + Colour::PrussianBlue, + Colour::SlateGreen, + Colour::DirtyPink, + Colour::DarkBlueGreen, + Colour::Pine, + Colour::YellowyGreen, + Colour::DarkGold, + Colour::Bluish, + Colour::DarkishBlue, + Colour::DullRed, + Colour::PinkyRed, + Colour::Bronze, + Colour::PaleTeal, + Colour::MilitaryGreen, + Colour::BarbiePink, + Colour::BubblegumPink, + Colour::PeaSoupGreen, + Colour::DarkMustard, + Colour::Shit, + Colour::MediumPurple, + Colour::VeryDarkGreen, + Colour::Dirt, + Colour::DuskyPink, + Colour::RedViolet, + Colour::LemonYellow, + Colour::Pistachio, + Colour::DullYellow, + Colour::DarkLimeGreen, + Colour::DenimBlue, + Colour::TealBlue, + Colour::LightishBlue, + Colour::PurpleyBlue, + Colour::LightIndigo, + Colour::SwampGreen, + Colour::BrownGreen, + Colour::DarkMaroon, + Colour::HotPurple, + Colour::DarkForestGreen, + Colour::FadedBlue, + Colour::DrabGreen, + Colour::LightLimeGreen, + Colour::SnotGreen, + Colour::Yellowish, + Colour::LightBlueGreen, + Colour::Bordeaux, + Colour::LightMauve, + Colour::Ocean, + Colour::Marigold, + Colour::MuddyGreen, + Colour::DullOrange, + Colour::Steel, + Colour::ElectricPurple, + Colour::FluorescentGreen, + Colour::YellowishBrown, + Colour::Blush, + Colour::SoftGreen, + Colour::BrightOrange, + Colour::Lemon, + Colour::PurpleGrey, + Colour::AcidGreen, + Colour::PaleLavender, + Colour::VioletBlue, + Colour::LightForestGreen, + Colour::BurntRed, + Colour::KhakiGreen, + Colour::Cerise, + Colour::FadedPurple, + Colour::Apricot, + Colour::DarkOliveGreen, + Colour::GreyBrown, + Colour::GreenGrey, + Colour::TrueBlue, + Colour::PaleViolet, + Colour::PeriwinkleBlue, + Colour::LightSkyBlue, + Colour::Blurple, + Colour::GreenBrown, + Colour::Bluegreen, + Colour::BrightTeal, + Colour::BrownishYellow, + Colour::PeaSoup, + Colour::Forest, + Colour::BarneyPurple, + Colour::Ultramarine, + Colour::Purplish, + Colour::PukeYellow, + Colour::BluishGrey, + Colour::DarkPeriwinkle, + Colour::DarkLilac, + Colour::Reddish, + Colour::LightMaroon, + Colour::DustyPurple, + Colour::TerraCotta, + Colour::Avocado, + Colour::MarineBlue, + Colour::TealGreen, + Colour::SlateGrey, + Colour::LighterGreen, + Colour::ElectricGreen, + Colour::DustyBlue, + Colour::GoldenYellow, + Colour::BrightYellow, + Colour::LightLavender, + Colour::Umber, + Colour::Poop, + Colour::DarkPeach, + Colour::JungleGreen, + Colour::Eggshell, + Colour::Denim, + Colour::YellowBrown, + Colour::DullPurple, + Colour::ChocolateBrown, + Colour::WineRed, + Colour::NeonBlue, + Colour::DirtyGreen, + Colour::LightTan, + Colour::IceBlue, + Colour::CadetBlue, + Colour::DarkMauve, + Colour::VeryLightBlue, + Colour::GreyPurple, + Colour::PastelPink, + Colour::VeryLightGreen, + Colour::DarkSkyBlue, + Colour::Evergreen, + Colour::DullPink, + Colour::Aubergine, + Colour::Mahogany, + Colour::ReddishOrange, + Colour::DeepGreen, + Colour::VomitGreen, + Colour::PurplePink, + Colour::DustyPink, + Colour::FadedGreen, + Colour::CamoGreen, + Colour::PinkyPurple, + Colour::PinkPurple, + Colour::BrownishRed, + Colour::DarkRose, + Colour::Mud, + Colour::Brownish, + Colour::EmeraldGreen, + Colour::PaleBrown, + Colour::DullBlue, + Colour::BurntUmber, + Colour::MediumGreen, + Colour::Clay, + Colour::LightAqua, + Colour::LightOliveGreen, + Colour::BrownishOrange, + Colour::DarkAqua, + Colour::PurplishPink, + Colour::DarkSalmon, + Colour::GreenishGrey, + Colour::Jade, + Colour::UglyGreen, + Colour::DarkBeige, + Colour::Emerald, + Colour::PaleRed, + Colour::LightMagenta, + Colour::Sky, + Colour::LightCyan, + Colour::YellowOrange, + Colour::ReddishPurple, + Colour::ReddishPink, + Colour::Orchid, + Colour::DirtyYellow, + Colour::OrangeRed, + Colour::DeepRed, + Colour::OrangeBrown, + Colour::CobaltBlue, + Colour::NeonPink, + Colour::RosePink, + Colour::GreyishPurple, + Colour::Raspberry, + Colour::AquaGreen, + Colour::SalmonPink, + Colour::Tangerine, + Colour::BrownishGreen, + Colour::RedBrown, + Colour::GreenishBrown, + Colour::Pumpkin, + Colour::PineGreen, + Colour::Charcoal, + Colour::BabyPink, + Colour::Cornflower, + Colour::BlueViolet, + Colour::Chocolate, + Colour::GreyishGreen, + Colour::Scarlet, + Colour::GreenYellow, + Colour::DarkOlive, + Colour::Sienna, + Colour::PastelPurple, + Colour::Terracotta, + Colour::AquaBlue, + Colour::SageGreen, + Colour::BloodRed, + Colour::DeepPink, + Colour::Grass, + Colour::Moss, + Colour::PastelBlue, + Colour::BluishGreen, + Colour::GreenBlue, + Colour::DarkTan, + Colour::GreenishBlue, + Colour::PaleOrange, + Colour::Vomit, + Colour::ForrestGreen, + Colour::DarkLavender, + Colour::DarkViolet, + Colour::PurpleBlue, + Colour::DarkCyan, + Colour::OliveDrab, + Colour::Pinkish, + Colour::Cobalt, + Colour::NeonPurple, + Colour::LightTurquoise, + Colour::AppleGreen, + Colour::DullGreen, + Colour::Wine, + Colour::PowderBlue, + Colour::OffWhite, + Colour::ElectricBlue, + Colour::DarkTurquoise, + Colour::BluePurple, + Colour::Azure, + Colour::BrightRed, + Colour::PinkishRed, + Colour::CornflowerBlue, + Colour::LightOlive, + Colour::Grape, + Colour::GreyishBlue, + Colour::PurplishBlue, + Colour::YellowishGreen, + Colour::GreenishYellow, + Colour::MediumBlue, + Colour::DustyRose, + Colour::LightViolet, + Colour::MidnightBlue, + Colour::BluishPurple, + Colour::RedOrange, + Colour::DarkMagenta, + Colour::Greenish, + Colour::OceanBlue, + Colour::Coral, + Colour::Cream, + Colour::ReddishBrown, + Colour::BurntSienna, + Colour::Brick, + Colour::Sage, + Colour::GreyGreen, + Colour::White, + Colour::RobinsEggBlue, + Colour::MossGreen, + Colour::SteelBlue, + Colour::Eggplant, + Colour::LightYellow, + Colour::LeafGreen, + Colour::LightGrey, + Colour::Puke, + Colour::PinkishPurple, + Colour::SeaBlue, + Colour::PalePurple, + Colour::SlateBlue, + Colour::BlueGrey, + Colour::HunterGreen, + Colour::Fuchsia, + Colour::Crimson, + Colour::PaleYellow, + Colour::Ochre, + Colour::MustardYellow, + Colour::LightRed, + Colour::Cerulean, + Colour::PalePink, + Colour::DeepBlue, + Colour::Rust, + Colour::LightTeal, + Colour::Slate, + Colour::Goldenrod, + Colour::DarkYellow, + Colour::DarkGrey, + Colour::ArmyGreen, + Colour::GreyBlue, + Colour::Seafoam, + Colour::Puce, + Colour::SpringGreen, + Colour::DarkOrange, + Colour::Sand, + Colour::PastelGreen, + Colour::Mint, + Colour::LightOrange, + Colour::BrightPink, + Colour::Chartreuse, + Colour::DeepPurple, + Colour::DarkBrown, + Colour::Taupe, + Colour::PeaGreen, + Colour::PukeGreen, + Colour::KellyGreen, + Colour::SeafoamGreen, + Colour::BlueGreen, + Colour::Khaki, + Colour::Burgundy, + Colour::DarkTeal, + Colour::BrickRed, + Colour::RoyalPurple, + Colour::Plum, + Colour::MintGreen, + Colour::Gold, + Colour::BabyBlue, + Colour::YellowGreen, + Colour::BrightPurple, + Colour::DarkRed, + Colour::PaleBlue, + Colour::GrassGreen, + Colour::Navy, + Colour::Aquamarine, + Colour::BurntOrange, + Colour::NeonGreen, + Colour::BrightBlue, + Colour::Rose, + Colour::LightPink, + Colour::Mustard, + Colour::Indigo, + Colour::Lime, + Colour::SeaGreen, + Colour::Periwinkle, + Colour::DarkPink, + Colour::OliveGreen, + Colour::Peach, + Colour::PaleGreen, + Colour::LightBrown, + Colour::HotPink, + Colour::Black, + Colour::Lilac, + Colour::NavyBlue, + Colour::RoyalBlue, + Colour::Beige, + Colour::Salmon, + Colour::Olive, + Colour::Maroon, + Colour::BrightGreen, + Colour::DarkPurple, + Colour::Mauve, + Colour::ForestGreen, + Colour::Aqua, + Colour::Cyan, + Colour::Tan, + Colour::DarkBlue, + Colour::Lavender, + Colour::Turquoise, + Colour::DarkGreen, + Colour::Violet, + Colour::LightPurple, + Colour::LimeGreen, + Colour::Grey, + Colour::SkyBlue, + Colour::Yellow, + Colour::Magenta, + Colour::LightGreen, + Colour::Orange, + Colour::Teal, + Colour::LightBlue, + Colour::Red, + Colour::Brown, + Colour::Pink, + Colour::Blue, + Colour::Green, + Colour::Purple, + ]; + COLOURS.iter() + } + pub fn to_rgb(&self) -> [u8; 3] { + match self { + Colour::CloudyBlue => [172, 194, 217], + Colour::DarkPastelGreen => [86, 174, 87], + Colour::Dust => [178, 153, 110], + Colour::ElectricLime => [168, 255, 4], + Colour::FreshGreen => [105, 216, 79], + Colour::LightEggplant => [137, 69, 133], + Colour::NastyGreen => [112, 178, 63], + Colour::ReallyLightBlue => [212, 255, 255], + Colour::Tea => [101, 171, 124], + Colour::WarmPurple => [149, 46, 143], + Colour::YellowishTan => [252, 252, 129], + Colour::Cement => [165, 163, 145], + Colour::DarkGrassGreen => [56, 128, 4], + Colour::DustyTeal => [76, 144, 133], + Colour::GreyTeal => [94, 155, 138], + Colour::MacaroniAndCheese => [239, 180, 53], + Colour::PinkishTan => [217, 155, 130], + Colour::Spruce => [10, 95, 56], + Colour::StrongBlue => [12, 6, 247], + Colour::ToxicGreen => [97, 222, 42], + Colour::WindowsBlue => [55, 120, 191], + Colour::BlueBlue => [34, 66, 199], + Colour::BlueWithAHintOfPurple => [83, 60, 198], + Colour::Booger => [155, 181, 60], + Colour::BrightSeaGreen => [5, 255, 166], + Colour::DarkGreenBlue => [31, 99, 87], + Colour::DeepTurquoise => [1, 115, 116], + Colour::GreenTeal => [12, 181, 119], + Colour::StrongPink => [255, 7, 137], + Colour::Bland => [175, 168, 139], + Colour::DeepAqua => [8, 120, 127], + Colour::LavenderPink => [221, 133, 215], + Colour::LightMossGreen => [166, 200, 117], + Colour::LightSeafoamGreen => [167, 255, 181], + Colour::OliveYellow => [194, 183, 9], + Colour::PigPink => [231, 142, 165], + Colour::DeepLilac => [150, 110, 189], + Colour::Desert => [204, 173, 96], + Colour::DustyLavender => [172, 134, 168], + Colour::PurpleyGrey => [148, 126, 148], + Colour::Purply => [152, 63, 178], + Colour::CandyPink => [255, 99, 233], + Colour::LightPastelGreen => [178, 251, 165], + Colour::BoringGreen => [99, 179, 101], + Colour::KiwiGreen => [142, 229, 63], + Colour::LightGreyGreen => [183, 225, 161], + Colour::OrangePink => [255, 111, 82], + Colour::TeaGreen => [189, 248, 163], + Colour::VeryLightBrown => [211, 182, 131], + Colour::EggShell => [255, 252, 196], + Colour::EggplantPurple => [67, 5, 65], + Colour::PowderPink => [255, 178, 208], + Colour::ReddishGrey => [153, 117, 112], + Colour::BabyShitBrown => [173, 144, 13], + Colour::Liliac => [196, 142, 253], + Colour::StormyBlue => [80, 123, 156], + Colour::UglyBrown => [125, 113, 3], + Colour::Custard => [255, 253, 120], + Colour::DarkishPink => [218, 70, 125], + Colour::DeepBrown => [65, 2, 0], + Colour::GreenishBeige => [201, 209, 121], + Colour::Manilla => [255, 250, 134], + Colour::OffBlue => [86, 132, 174], + Colour::BattleshipGrey => [107, 124, 133], + Colour::BrownyGreen => [111, 108, 10], + Colour::Bruise => [126, 64, 113], + Colour::KelleyGreen => [0, 147, 55], + Colour::SicklyYellow => [208, 228, 41], + Colour::SunnyYellow => [255, 249, 23], + Colour::Azul => [29, 93, 236], + Colour::Darkgreen => [5, 73, 7], + Colour::GreenAndYellow => [181, 206, 8], + Colour::Lichen => [143, 182, 123], + Colour::LightLightGreen => [200, 255, 176], + Colour::PaleGold => [253, 222, 108], + Colour::SunYellow => [255, 223, 34], + Colour::TanGreen => [169, 190, 112], + Colour::Burple => [104, 50, 227], + Colour::Butterscotch => [253, 177, 71], + Colour::Toupe => [199, 172, 125], + Colour::DarkCream => [255, 243, 154], + Colour::IndianRed => [133, 14, 4], + Colour::LightLavendar => [239, 192, 254], + Colour::PoisonGreen => [64, 253, 20], + Colour::BabyPukeGreen => [182, 196, 6], + Colour::BrightYellowGreen => [157, 255, 0], + Colour::CharcoalGrey => [60, 65, 66], + Colour::Squash => [242, 171, 21], + Colour::Cinnamon => [172, 79, 6], + Colour::LightPeaGreen => [196, 254, 130], + Colour::RadioactiveGreen => [44, 250, 31], + Colour::RawSienna => [154, 98, 0], + Colour::BabyPurple => [202, 155, 247], + Colour::Cocoa => [135, 95, 66], + Colour::LightRoyalBlue => [58, 46, 254], + Colour::Orangeish => [253, 141, 73], + Colour::RustBrown => [139, 49, 3], + Colour::SandBrown => [203, 165, 96], + Colour::Swamp => [105, 131, 57], + Colour::TealishGreen => [12, 220, 115], + Colour::BurntSiena => [183, 82, 3], + Colour::Camo => [127, 143, 78], + Colour::DuskBlue => [38, 83, 141], + Colour::Fern => [99, 169, 80], + Colour::OldRose => [200, 127, 137], + Colour::PaleLightGreen => [177, 252, 153], + Colour::PeachyPink => [255, 154, 138], + Colour::RosyPink => [246, 104, 142], + Colour::LightBluishGreen => [118, 253, 168], + Colour::LightBrightGreen => [83, 254, 92], + Colour::LightNeonGreen => [78, 253, 84], + Colour::LightSeafoam => [160, 254, 191], + Colour::TiffanyBlue => [123, 242, 218], + Colour::WashedOutGreen => [188, 245, 166], + Colour::BrownyOrange => [202, 107, 2], + Colour::NiceBlue => [16, 122, 176], + Colour::Sapphire => [33, 56, 171], + Colour::GreyishTeal => [113, 159, 145], + Colour::OrangeyYellow => [253, 185, 21], + Colour::Parchment => [254, 252, 175], + Colour::Straw => [252, 246, 121], + Colour::VeryDarkBrown => [29, 2, 0], + Colour::Terracota => [203, 104, 67], + Colour::UglyBlue => [49, 102, 138], + Colour::ClearBlue => [36, 122, 253], + Colour::Creme => [255, 255, 182], + Colour::FoamGreen => [144, 253, 169], + Colour::GreyAndGreen => [134, 161, 125], + Colour::LightGold => [253, 220, 92], + Colour::SeafoamBlue => [120, 209, 182], + Colour::Topaz => [19, 187, 175], + Colour::VioletPink => [251, 95, 252], + Colour::Wintergreen => [32, 249, 134], + Colour::YellowTan => [255, 227, 110], + Colour::DarkFuchsia => [157, 7, 89], + Colour::IndigoBlue => [58, 24, 177], + Colour::LightYellowishGreen => [194, 255, 137], + Colour::PaleMagenta => [215, 103, 173], + Colour::RichPurple => [114, 0, 88], + Colour::SunflowerYellow => [255, 218, 3], + Colour::GreenAndBlue => [1, 192, 141], + Colour::Leather => [172, 116, 52], + Colour::RacingGreen => [1, 70, 0], + Colour::VividPurple => [153, 0, 250], + Colour::DarkRoyalBlue => [2, 6, 111], + Colour::Hazel => [142, 118, 24], + Colour::MutedPink => [209, 118, 143], + Colour::BoogerGreen => [150, 180, 3], + Colour::Canary => [253, 255, 99], + Colour::CoolGrey => [149, 163, 166], + Colour::DarkTaupe => [127, 104, 78], + Colour::DarkishPurple => [117, 25, 115], + Colour::TrueGreen => [8, 148, 4], + Colour::CoralPink => [255, 97, 99], + Colour::DarkSage => [89, 133, 86], + Colour::DarkSlateBlue => [33, 71, 97], + Colour::FlatBlue => [60, 115, 168], + Colour::Mushroom => [186, 158, 136], + Colour::RichBlue => [2, 27, 249], + Colour::DirtyPurple => [115, 74, 101], + Colour::Greenblue => [35, 196, 139], + Colour::IckyGreen => [143, 174, 34], + Colour::LightKhaki => [230, 242, 162], + Colour::WarmBlue => [75, 87, 219], + Colour::DarkHotPink => [217, 1, 102], + Colour::DeepSeaBlue => [1, 84, 130], + Colour::Carmine => [157, 2, 22], + Colour::DarkYellowGreen => [114, 143, 2], + Colour::PalePeach => [255, 229, 173], + Colour::PlumPurple => [78, 5, 80], + Colour::GoldenRod => [249, 188, 8], + Colour::NeonRed => [255, 7, 58], + Colour::OldPink => [199, 121, 134], + Colour::VeryPaleBlue => [214, 255, 254], + Colour::BloodOrange => [254, 75, 3], + Colour::Grapefruit => [253, 89, 86], + Colour::SandYellow => [252, 225, 102], + Colour::ClayBrown => [178, 113, 61], + Colour::DarkBlueGrey => [31, 59, 77], + Colour::FlatGreen => [105, 157, 76], + Colour::LightGreenBlue => [86, 252, 162], + Colour::WarmPink => [251, 85, 129], + Colour::DodgerBlue => [62, 130, 252], + Colour::GrossGreen => [160, 191, 22], + Colour::Ice => [214, 255, 250], + Colour::MetallicBlue => [79, 115, 142], + Colour::PaleSalmon => [255, 177, 154], + Colour::SapGreen => [92, 139, 21], + Colour::Algae => [84, 172, 104], + Colour::BlueyGrey => [137, 160, 176], + Colour::GreenyGrey => [126, 160, 122], + Colour::HighlighterGreen => [27, 252, 6], + Colour::LightLightBlue => [202, 255, 251], + Colour::LightMint => [182, 255, 187], + Colour::RawUmber => [167, 94, 9], + Colour::VividBlue => [21, 46, 255], + Colour::DeepLavender => [141, 94, 183], + Colour::DullTeal => [95, 158, 143], + Colour::LightGreenishBlue => [99, 247, 180], + Colour::MudGreen => [96, 102, 2], + Colour::Pinky => [252, 134, 170], + Colour::RedWine => [140, 0, 52], + Colour::ShitGreen => [117, 128, 0], + Colour::TanBrown => [171, 126, 76], + Colour::Darkblue => [3, 7, 100], + Colour::Rosa => [254, 134, 164], + Colour::Lipstick => [213, 23, 78], + Colour::PaleMauve => [254, 208, 252], + Colour::Claret => [104, 0, 24], + Colour::Dandelion => [254, 223, 8], + Colour::Orangered => [254, 66, 15], + Colour::PoopGreen => [111, 124, 0], + Colour::Ruby => [202, 1, 71], + Colour::Dark => [27, 36, 49], + Colour::GreenishTurquoise => [0, 251, 176], + Colour::PastelRed => [219, 88, 86], + Colour::PissYellow => [221, 214, 24], + Colour::BrightCyan => [65, 253, 254], + Colour::DarkCoral => [207, 82, 78], + Colour::AlgaeGreen => [33, 195, 111], + Colour::DarkishRed => [169, 3, 8], + Colour::ReddyBrown => [110, 16, 5], + Colour::BlushPink => [254, 130, 140], + Colour::CamouflageGreen => [75, 97, 19], + Colour::LawnGreen => [77, 164, 9], + Colour::Putty => [190, 174, 138], + Colour::VibrantBlue => [3, 57, 248], + Colour::DarkSand => [168, 143, 89], + Colour::PurpleAndBlue => [93, 33, 208], + Colour::Saffron => [254, 178, 9], + Colour::Twilight => [78, 81, 139], + Colour::WarmBrown => [150, 78, 2], + Colour::Bluegrey => [133, 163, 178], + Colour::BubbleGumPink => [255, 105, 175], + Colour::DuckEggBlue => [195, 251, 244], + Colour::GreenishCyan => [42, 254, 183], + Colour::Petrol => [0, 95, 106], + Colour::Royal => [12, 23, 147], + Colour::Butter => [255, 255, 129], + Colour::DustyOrange => [240, 131, 58], + Colour::OffYellow => [241, 243, 63], + Colour::PaleOliveGreen => [177, 210, 123], + Colour::Orangish => [252, 130, 74], + Colour::Leaf => [113, 170, 52], + Colour::LightBlueGrey => [183, 201, 226], + Colour::DriedBlood => [75, 1, 1], + Colour::LightishPurple => [165, 82, 230], + Colour::RustyRed => [175, 47, 13], + Colour::LavenderBlue => [139, 136, 248], + Colour::LightGrassGreen => [154, 247, 100], + Colour::LightMintGreen => [166, 251, 178], + Colour::Sunflower => [255, 197, 18], + Colour::Velvet => [117, 8, 81], + Colour::BrickOrange => [193, 74, 9], + Colour::LightishRed => [254, 47, 74], + Colour::PureBlue => [2, 3, 226], + Colour::TwilightBlue => [10, 67, 122], + Colour::VioletRed => [165, 0, 85], + Colour::YellowyBrown => [174, 139, 12], + Colour::Carnation => [253, 121, 143], + Colour::MuddyYellow => [191, 172, 5], + Colour::DarkSeafoamGreen => [62, 175, 118], + Colour::DeepRose => [199, 71, 103], + Colour::DustyRed => [185, 72, 78], + Colour::GreyAndBlue => [100, 125, 142], + Colour::LemonLime => [191, 254, 40], + Colour::PurpleAndPink => [215, 37, 222], + Colour::BrownYellow => [178, 151, 5], + Colour::PurpleBrown => [103, 58, 63], + Colour::Wisteria => [168, 125, 194], + Colour::BananaYellow => [250, 254, 75], + Colour::LipstickRed => [192, 2, 47], + Colour::WaterBlue => [14, 135, 204], + Colour::BrownGrey => [141, 132, 104], + Colour::VibrantPurple => [173, 3, 222], + Colour::BabyGreen => [140, 255, 158], + Colour::BarfGreen => [148, 172, 2], + Colour::EggshellBlue => [196, 255, 247], + Colour::SandyYellow => [253, 238, 115], + Colour::CoolGreen => [51, 184, 100], + Colour::Pale => [255, 249, 208], + Colour::BlueAndGrey => [117, 141, 163], + Colour::HotMagenta => [245, 4, 201], + Colour::Greyblue => [119, 161, 181], + Colour::Purpley => [135, 86, 228], + Colour::BabyShitGreen => [136, 151, 23], + Colour::BrownishPink => [194, 126, 121], + Colour::DarkAquamarine => [1, 115, 113], + Colour::Diarrhea => [159, 131, 3], + Colour::LightMustard => [247, 213, 96], + Colour::PaleSkyBlue => [189, 246, 254], + Colour::TurtleGreen => [117, 184, 79], + Colour::BrightOlive => [156, 187, 4], + Colour::DarkGreyBlue => [41, 70, 91], + Colour::GreenyBrown => [105, 96, 6], + Colour::LemonGreen => [173, 248, 2], + Colour::LightPeriwinkle => [193, 198, 252], + Colour::SeaweedGreen => [53, 173, 107], + Colour::SunshineYellow => [255, 253, 55], + Colour::UglyPurple => [164, 66, 160], + Colour::MediumPink => [243, 97, 150], + Colour::PukeBrown => [148, 119, 6], + Colour::VeryLightPink => [255, 244, 242], + Colour::Viridian => [30, 145, 103], + Colour::Bile => [181, 195, 6], + Colour::FadedYellow => [254, 255, 127], + Colour::VeryPaleGreen => [207, 253, 188], + Colour::VibrantGreen => [10, 221, 8], + Colour::BrightLime => [135, 253, 5], + Colour::Spearmint => [30, 248, 118], + Colour::LightAquamarine => [123, 253, 199], + Colour::LightSage => [188, 236, 172], + Colour::Yellowgreen => [187, 249, 15], + Colour::BabyPoo => [171, 144, 4], + Colour::DarkSeafoam => [31, 181, 122], + Colour::DeepTeal => [0, 85, 90], + Colour::Heather => [164, 132, 172], + Colour::RustOrange => [196, 85, 8], + Colour::DirtyBlue => [63, 130, 157], + Colour::FernGreen => [84, 141, 68], + Colour::BrightLilac => [201, 94, 251], + Colour::WeirdGreen => [58, 229, 127], + Colour::PeacockBlue => [1, 103, 149], + Colour::AvocadoGreen => [135, 169, 34], + Colour::FadedOrange => [240, 148, 77], + Colour::GrapePurple => [93, 20, 81], + Colour::HotGreen => [37, 255, 41], + Colour::LimeYellow => [208, 254, 29], + Colour::Mango => [255, 166, 43], + Colour::Shamrock => [1, 180, 76], + Colour::Bubblegum => [255, 108, 181], + Colour::PurplishBrown => [107, 66, 71], + Colour::VomitYellow => [199, 193, 12], + Colour::PaleCyan => [183, 255, 250], + Colour::KeyLime => [174, 255, 110], + Colour::TomatoRed => [236, 45, 1], + Colour::Lightgreen => [118, 255, 123], + Colour::Merlot => [115, 0, 57], + Colour::NightBlue => [4, 3, 72], + Colour::PurpleishPink => [223, 78, 200], + Colour::Apple => [110, 203, 60], + Colour::BabyPoopGreen => [143, 152, 5], + Colour::GreenApple => [94, 220, 31], + Colour::Heliotrope => [217, 79, 245], + Colour::YellowAndGreen => [200, 253, 61], + Colour::AlmostBlack => [7, 13, 13], + Colour::CoolBlue => [73, 132, 184], + Colour::LeafyGreen => [81, 183, 59], + Colour::MustardBrown => [172, 126, 4], + Colour::Dusk => [78, 84, 129], + Colour::DullBrown => [135, 110, 75], + Colour::FrogGreen => [88, 188, 8], + Colour::VividGreen => [47, 239, 16], + Colour::BrightLightGreen => [45, 254, 84], + Colour::FluroGreen => [10, 255, 2], + Colour::Kiwi => [156, 239, 67], + Colour::Seaweed => [24, 209, 123], + Colour::NavyGreen => [53, 83, 10], + Colour::UltramarineBlue => [24, 5, 219], + Colour::Iris => [98, 88, 196], + Colour::PastelOrange => [255, 150, 79], + Colour::YellowishOrange => [255, 171, 15], + Colour::Perrywinkle => [143, 140, 231], + Colour::Tealish => [36, 188, 168], + Colour::DarkPlum => [63, 1, 44], + Colour::Pear => [203, 248, 95], + Colour::PinkishOrange => [255, 114, 76], + Colour::MidnightPurple => [40, 1, 55], + Colour::LightUrple => [179, 111, 246], + Colour::DarkMint => [72, 192, 114], + Colour::GreenishTan => [188, 203, 122], + Colour::LightBurgundy => [168, 65, 91], + Colour::TurquoiseBlue => [6, 177, 196], + Colour::UglyPink => [205, 117, 132], + Colour::Sandy => [241, 218, 122], + Colour::ElectricPink => [255, 4, 144], + Colour::MutedPurple => [128, 91, 135], + Colour::MidGreen => [80, 167, 71], + Colour::Greyish => [168, 164, 149], + Colour::NeonYellow => [207, 255, 4], + Colour::Banana => [255, 255, 126], + Colour::CarnationPink => [255, 127, 167], + Colour::Tomato => [239, 64, 38], + Colour::Sea => [60, 153, 146], + Colour::MuddyBrown => [136, 104, 6], + Colour::TurquoiseGreen => [4, 244, 137], + Colour::Buff => [254, 246, 158], + Colour::Fawn => [207, 175, 123], + Colour::MutedBlue => [59, 113, 159], + Colour::PaleRose => [253, 193, 197], + Colour::DarkMintGreen => [32, 192, 115], + Colour::Amethyst => [155, 95, 192], + Colour::BlueAndGreen => [15, 155, 142], + Colour::Chestnut => [116, 40, 2], + Colour::SickGreen => [157, 185, 44], + Colour::Pea => [164, 191, 32], + Colour::RustyOrange => [205, 89, 9], + Colour::Stone => [173, 165, 135], + Colour::RoseRed => [190, 1, 60], + Colour::PaleAqua => [184, 255, 235], + Colour::DeepOrange => [220, 77, 1], + Colour::Earth => [162, 101, 62], + Colour::MossyGreen => [99, 139, 39], + Colour::GrassyGreen => [65, 156, 3], + Colour::PaleLimeGreen => [177, 255, 101], + Colour::LightGreyBlue => [157, 188, 212], + Colour::PaleGrey => [253, 253, 254], + Colour::Asparagus => [119, 171, 86], + Colour::Blueberry => [70, 65, 150], + Colour::PurpleRed => [153, 1, 71], + Colour::PaleLime => [190, 253, 115], + Colour::GreenishTeal => [50, 191, 132], + Colour::Caramel => [175, 111, 9], + Colour::DeepMagenta => [160, 2, 92], + Colour::LightPeach => [255, 216, 177], + Colour::MilkChocolate => [127, 78, 30], + Colour::Ocher => [191, 155, 12], + Colour::OffGreen => [107, 163, 83], + Colour::PurplyPink => [240, 117, 230], + Colour::Lightblue => [123, 200, 246], + Colour::DuskyBlue => [71, 95, 148], + Colour::Golden => [245, 191, 3], + Colour::LightBeige => [255, 254, 182], + Colour::ButterYellow => [255, 253, 116], + Colour::DuskyPurple => [137, 91, 123], + Colour::FrenchBlue => [67, 107, 173], + Colour::UglyYellow => [208, 193, 1], + Colour::GreenyYellow => [198, 248, 8], + Colour::OrangishRed => [244, 54, 5], + Colour::ShamrockGreen => [2, 193, 77], + Colour::OrangishBrown => [178, 95, 3], + Colour::TreeGreen => [42, 126, 25], + Colour::DeepViolet => [73, 6, 72], + Colour::Gunmetal => [83, 98, 103], + Colour::BlueAndPurple => [90, 6, 239], + Colour::Cherry => [207, 2, 52], + Colour::SandyBrown => [196, 166, 97], + Colour::WarmGrey => [151, 138, 132], + Colour::DarkIndigo => [31, 9, 84], + Colour::Midnight => [3, 1, 45], + Colour::BlueyGreen => [43, 177, 121], + Colour::GreyPink => [195, 144, 155], + Colour::SoftPurple => [166, 111, 181], + Colour::Blood => [119, 0, 1], + Colour::BrownRed => [146, 43, 5], + Colour::MediumGrey => [125, 127, 124], + Colour::Berry => [153, 15, 75], + Colour::Poo => [143, 115, 3], + Colour::PurpleyPink => [200, 60, 185], + Colour::LightSalmon => [254, 169, 147], + Colour::Snot => [172, 187, 13], + Colour::EasterPurple => [192, 113, 254], + Colour::LightYellowGreen => [204, 253, 127], + Colour::DarkNavyBlue => [0, 2, 46], + Colour::Drab => [130, 131, 68], + Colour::LightRose => [255, 197, 203], + Colour::Rouge => [171, 18, 57], + Colour::PurplishRed => [176, 5, 75], + Colour::SlimeGreen => [153, 204, 4], + Colour::BabyPoop => [147, 124, 0], + Colour::IrishGreen => [1, 149, 41], + Colour::PinkAndPurple => [239, 29, 231], + Colour::DarkNavy => [0, 4, 53], + Colour::GreenyBlue => [66, 179, 149], + Colour::LightPlum => [157, 87, 131], + Colour::PinkishGrey => [200, 172, 169], + Colour::DirtyOrange => [200, 118, 6], + Colour::RustRed => [170, 39, 4], + Colour::PaleLilac => [228, 203, 255], + Colour::OrangeyRed => [250, 66, 36], + Colour::PrimaryBlue => [8, 4, 249], + Colour::KermitGreen => [92, 178, 0], + Colour::BrownishPurple => [118, 66, 78], + Colour::MurkyGreen => [108, 122, 14], + Colour::Wheat => [251, 221, 126], + Colour::VeryDarkPurple => [42, 1, 52], + Colour::BottleGreen => [4, 74, 5], + Colour::Watermelon => [253, 70, 89], + Colour::DeepSkyBlue => [13, 117, 248], + Colour::FireEngineRed => [254, 0, 2], + Colour::YellowOchre => [203, 157, 6], + Colour::PumpkinOrange => [251, 125, 7], + Colour::PaleOlive => [185, 204, 129], + Colour::LightLilac => [237, 200, 255], + Colour::LightishGreen => [97, 225, 96], + Colour::CarolinaBlue => [138, 184, 254], + Colour::Mulberry => [146, 10, 78], + Colour::ShockingPink => [254, 2, 162], + Colour::Auburn => [154, 48, 1], + Colour::BrightLimeGreen => [101, 254, 8], + Colour::Celadon => [190, 253, 183], + Colour::PinkishBrown => [177, 114, 97], + Colour::PooBrown => [136, 95, 1], + Colour::BrightSkyBlue => [2, 204, 254], + Colour::Celery => [193, 253, 149], + Colour::DirtBrown => [131, 101, 57], + Colour::Strawberry => [251, 41, 67], + Colour::DarkLime => [132, 183, 1], + Colour::Copper => [182, 99, 37], + Colour::MediumBrown => [127, 81, 18], + Colour::MutedGreen => [95, 160, 82], + Colour::RobinsEgg => [109, 237, 253], + Colour::BrightAqua => [11, 249, 234], + Colour::BrightLavender => [199, 96, 255], + Colour::Ivory => [255, 255, 203], + Colour::VeryLightPurple => [246, 206, 252], + Colour::LightNavy => [21, 80, 132], + Colour::PinkRed => [245, 5, 79], + Colour::OliveBrown => [100, 84, 3], + Colour::PoopBrown => [122, 89, 1], + Colour::MustardGreen => [168, 181, 4], + Colour::OceanGreen => [61, 153, 115], + Colour::VeryDarkBlue => [0, 1, 51], + Colour::DustyGreen => [118, 169, 115], + Colour::LightNavyBlue => [46, 90, 136], + Colour::MintyGreen => [11, 247, 125], + Colour::Adobe => [189, 108, 72], + Colour::Barney => [172, 29, 184], + Colour::JadeGreen => [43, 175, 106], + Colour::BrightLightBlue => [38, 247, 253], + Colour::LightLime => [174, 253, 108], + Colour::DarkKhaki => [155, 143, 85], + Colour::OrangeYellow => [255, 173, 1], + Colour::Ocre => [198, 156, 4], + Colour::Maize => [244, 208, 84], + Colour::FadedPink => [222, 157, 172], + Colour::BritishRacingGreen => [5, 72, 13], + Colour::Sandstone => [201, 174, 116], + Colour::MudBrown => [96, 70, 15], + Colour::LightSeaGreen => [152, 246, 176], + Colour::RobinEggBlue => [138, 241, 254], + Colour::AquaMarine => [46, 232, 187], + Colour::DarkSeaGreen => [17, 135, 93], + Colour::SoftPink => [253, 176, 192], + Colour::OrangeyBrown => [177, 96, 2], + Colour::CherryRed => [247, 2, 42], + Colour::BurntYellow => [213, 171, 9], + Colour::BrownishGrey => [134, 119, 95], + Colour::Camel => [198, 159, 89], + Colour::PurplishGrey => [122, 104, 127], + Colour::Marine => [4, 46, 96], + Colour::GreyishPink => [200, 141, 148], + Colour::PaleTurquoise => [165, 251, 213], + Colour::PastelYellow => [255, 254, 113], + Colour::BlueyPurple => [98, 65, 199], + Colour::CanaryYellow => [255, 254, 64], + Colour::FadedRed => [211, 73, 78], + Colour::Sepia => [152, 94, 43], + Colour::Coffee => [166, 129, 76], + Colour::BrightMagenta => [255, 8, 232], + Colour::Mocha => [157, 118, 81], + Colour::Ecru => [254, 255, 202], + Colour::Purpleish => [152, 86, 141], + Colour::Cranberry => [158, 0, 58], + Colour::DarkishGreen => [40, 124, 55], + Colour::BrownOrange => [185, 105, 2], + Colour::DuskyRose => [186, 104, 115], + Colour::Melon => [255, 120, 85], + Colour::SicklyGreen => [148, 178, 28], + Colour::Silver => [197, 201, 199], + Colour::PurplyBlue => [102, 26, 238], + Colour::PurpleishBlue => [97, 64, 239], + Colour::HospitalGreen => [155, 229, 170], + Colour::ShitBrown => [123, 88, 4], + Colour::MidBlue => [39, 106, 179], + Colour::Amber => [254, 179, 8], + Colour::EasterGreen => [140, 253, 126], + Colour::SoftBlue => [100, 136, 234], + Colour::CeruleanBlue => [5, 110, 238], + Colour::GoldenBrown => [178, 122, 1], + Colour::BrightTurquoise => [15, 254, 249], + Colour::RedPink => [250, 42, 85], + Colour::RedPurple => [130, 7, 71], + Colour::GreyishBrown => [122, 106, 79], + Colour::Vermillion => [244, 50, 12], + Colour::Russet => [161, 57, 5], + Colour::SteelGrey => [111, 130, 138], + Colour::LighterPurple => [165, 90, 244], + Colour::BrightViolet => [173, 10, 253], + Colour::PrussianBlue => [0, 69, 119], + Colour::SlateGreen => [101, 141, 109], + Colour::DirtyPink => [202, 123, 128], + Colour::DarkBlueGreen => [0, 82, 73], + Colour::Pine => [43, 93, 52], + Colour::YellowyGreen => [191, 241, 40], + Colour::DarkGold => [181, 148, 16], + Colour::Bluish => [41, 118, 187], + Colour::DarkishBlue => [1, 65, 130], + Colour::DullRed => [187, 63, 63], + Colour::PinkyRed => [252, 38, 71], + Colour::Bronze => [168, 121, 0], + Colour::PaleTeal => [130, 203, 178], + Colour::MilitaryGreen => [102, 124, 62], + Colour::BarbiePink => [254, 70, 165], + Colour::BubblegumPink => [254, 131, 204], + Colour::PeaSoupGreen => [148, 166, 23], + Colour::DarkMustard => [168, 137, 5], + Colour::Shit => [127, 95, 0], + Colour::MediumPurple => [158, 67, 162], + Colour::VeryDarkGreen => [6, 46, 3], + Colour::Dirt => [138, 110, 69], + Colour::DuskyPink => [204, 122, 139], + Colour::RedViolet => [158, 1, 104], + Colour::LemonYellow => [253, 255, 56], + Colour::Pistachio => [192, 250, 139], + Colour::DullYellow => [238, 220, 91], + Colour::DarkLimeGreen => [126, 189, 1], + Colour::DenimBlue => [59, 91, 146], + Colour::TealBlue => [1, 136, 159], + Colour::LightishBlue => [61, 122, 253], + Colour::PurpleyBlue => [95, 52, 231], + Colour::LightIndigo => [109, 90, 207], + Colour::SwampGreen => [116, 133, 0], + Colour::BrownGreen => [112, 108, 17], + Colour::DarkMaroon => [60, 0, 8], + Colour::HotPurple => [203, 0, 245], + Colour::DarkForestGreen => [0, 45, 4], + Colour::FadedBlue => [101, 140, 187], + Colour::DrabGreen => [116, 149, 81], + Colour::LightLimeGreen => [185, 255, 102], + Colour::SnotGreen => [157, 193, 0], + Colour::Yellowish => [250, 238, 102], + Colour::LightBlueGreen => [126, 251, 179], + Colour::Bordeaux => [123, 0, 44], + Colour::LightMauve => [194, 146, 161], + Colour::Ocean => [1, 123, 146], + Colour::Marigold => [252, 192, 6], + Colour::MuddyGreen => [101, 116, 50], + Colour::DullOrange => [216, 134, 59], + Colour::Steel => [115, 133, 149], + Colour::ElectricPurple => [170, 35, 255], + Colour::FluorescentGreen => [8, 255, 8], + Colour::YellowishBrown => [155, 122, 1], + Colour::Blush => [242, 158, 142], + Colour::SoftGreen => [111, 194, 118], + Colour::BrightOrange => [255, 91, 0], + Colour::Lemon => [253, 255, 82], + Colour::PurpleGrey => [134, 111, 133], + Colour::AcidGreen => [143, 254, 9], + Colour::PaleLavender => [238, 207, 254], + Colour::VioletBlue => [81, 10, 201], + Colour::LightForestGreen => [79, 145, 83], + Colour::BurntRed => [159, 35, 5], + Colour::KhakiGreen => [114, 134, 57], + Colour::Cerise => [222, 12, 98], + Colour::FadedPurple => [145, 110, 153], + Colour::Apricot => [255, 177, 109], + Colour::DarkOliveGreen => [60, 77, 3], + Colour::GreyBrown => [127, 112, 83], + Colour::GreenGrey => [119, 146, 111], + Colour::TrueBlue => [1, 15, 204], + Colour::PaleViolet => [206, 174, 250], + Colour::PeriwinkleBlue => [143, 153, 251], + Colour::LightSkyBlue => [198, 252, 255], + Colour::Blurple => [85, 57, 204], + Colour::GreenBrown => [84, 78, 3], + Colour::Bluegreen => [1, 122, 121], + Colour::BrightTeal => [1, 249, 198], + Colour::BrownishYellow => [201, 176, 3], + Colour::PeaSoup => [146, 153, 1], + Colour::Forest => [11, 85, 9], + Colour::BarneyPurple => [160, 4, 152], + Colour::Ultramarine => [32, 0, 177], + Colour::Purplish => [148, 86, 140], + Colour::PukeYellow => [194, 190, 14], + Colour::BluishGrey => [116, 139, 151], + Colour::DarkPeriwinkle => [102, 95, 209], + Colour::DarkLilac => [156, 109, 165], + Colour::Reddish => [196, 66, 64], + Colour::LightMaroon => [162, 72, 87], + Colour::DustyPurple => [130, 95, 135], + Colour::TerraCotta => [201, 100, 59], + Colour::Avocado => [144, 177, 52], + Colour::MarineBlue => [1, 56, 106], + Colour::TealGreen => [37, 163, 111], + Colour::SlateGrey => [89, 101, 109], + Colour::LighterGreen => [117, 253, 99], + Colour::ElectricGreen => [33, 252, 13], + Colour::DustyBlue => [90, 134, 173], + Colour::GoldenYellow => [254, 198, 21], + Colour::BrightYellow => [255, 253, 1], + Colour::LightLavender => [223, 197, 254], + Colour::Umber => [178, 100, 0], + Colour::Poop => [127, 94, 0], + Colour::DarkPeach => [222, 126, 93], + Colour::JungleGreen => [4, 130, 67], + Colour::Eggshell => [255, 255, 212], + Colour::Denim => [59, 99, 140], + Colour::YellowBrown => [183, 148, 0], + Colour::DullPurple => [132, 89, 126], + Colour::ChocolateBrown => [65, 25, 0], + Colour::WineRed => [123, 3, 35], + Colour::NeonBlue => [4, 217, 255], + Colour::DirtyGreen => [102, 126, 44], + Colour::LightTan => [251, 238, 172], + Colour::IceBlue => [215, 255, 254], + Colour::CadetBlue => [78, 116, 150], + Colour::DarkMauve => [135, 76, 98], + Colour::VeryLightBlue => [213, 255, 255], + Colour::GreyPurple => [130, 109, 140], + Colour::PastelPink => [255, 186, 205], + Colour::VeryLightGreen => [209, 255, 189], + Colour::DarkSkyBlue => [68, 142, 228], + Colour::Evergreen => [5, 71, 42], + Colour::DullPink => [213, 134, 157], + Colour::Aubergine => [61, 7, 52], + Colour::Mahogany => [74, 1, 0], + Colour::ReddishOrange => [248, 72, 28], + Colour::DeepGreen => [2, 89, 15], + Colour::VomitGreen => [137, 162, 3], + Colour::PurplePink => [224, 63, 216], + Colour::DustyPink => [213, 138, 148], + Colour::FadedGreen => [123, 178, 116], + Colour::CamoGreen => [82, 101, 37], + Colour::PinkyPurple => [201, 76, 190], + Colour::PinkPurple => [219, 75, 218], + Colour::BrownishRed => [158, 54, 35], + Colour::DarkRose => [181, 72, 93], + Colour::Mud => [115, 92, 18], + Colour::Brownish => [156, 109, 87], + Colour::EmeraldGreen => [2, 143, 30], + Colour::PaleBrown => [177, 145, 110], + Colour::DullBlue => [73, 117, 156], + Colour::BurntUmber => [160, 69, 14], + Colour::MediumGreen => [57, 173, 72], + Colour::Clay => [182, 106, 80], + Colour::LightAqua => [140, 255, 219], + Colour::LightOliveGreen => [164, 190, 92], + Colour::BrownishOrange => [203, 119, 35], + Colour::DarkAqua => [5, 105, 107], + Colour::PurplishPink => [206, 93, 174], + Colour::DarkSalmon => [200, 90, 83], + Colour::GreenishGrey => [150, 174, 141], + Colour::Jade => [31, 167, 116], + Colour::UglyGreen => [122, 151, 3], + Colour::DarkBeige => [172, 147, 98], + Colour::Emerald => [1, 160, 73], + Colour::PaleRed => [217, 84, 77], + Colour::LightMagenta => [250, 95, 247], + Colour::Sky => [130, 202, 252], + Colour::LightCyan => [172, 255, 252], + Colour::YellowOrange => [252, 176, 1], + Colour::ReddishPurple => [145, 9, 81], + Colour::ReddishPink => [254, 44, 84], + Colour::Orchid => [200, 117, 196], + Colour::DirtyYellow => [205, 197, 10], + Colour::OrangeRed => [253, 65, 30], + Colour::DeepRed => [154, 2, 0], + Colour::OrangeBrown => [190, 100, 0], + Colour::CobaltBlue => [3, 10, 167], + Colour::NeonPink => [254, 1, 154], + Colour::RosePink => [247, 135, 154], + Colour::GreyishPurple => [136, 113, 145], + Colour::Raspberry => [176, 1, 73], + Colour::AquaGreen => [18, 225, 147], + Colour::SalmonPink => [254, 123, 124], + Colour::Tangerine => [255, 148, 8], + Colour::BrownishGreen => [106, 110, 9], + Colour::RedBrown => [139, 46, 22], + Colour::GreenishBrown => [105, 97, 18], + Colour::Pumpkin => [225, 119, 1], + Colour::PineGreen => [10, 72, 30], + Colour::Charcoal => [52, 56, 55], + Colour::BabyPink => [255, 183, 206], + Colour::Cornflower => [106, 121, 247], + Colour::BlueViolet => [93, 6, 233], + Colour::Chocolate => [61, 28, 2], + Colour::GreyishGreen => [130, 166, 125], + Colour::Scarlet => [190, 1, 25], + Colour::GreenYellow => [201, 255, 39], + Colour::DarkOlive => [55, 62, 2], + Colour::Sienna => [169, 86, 30], + Colour::PastelPurple => [202, 160, 255], + Colour::Terracotta => [202, 102, 65], + Colour::AquaBlue => [2, 216, 233], + Colour::SageGreen => [136, 179, 120], + Colour::BloodRed => [152, 0, 2], + Colour::DeepPink => [203, 1, 98], + Colour::Grass => [92, 172, 45], + Colour::Moss => [118, 153, 88], + Colour::PastelBlue => [162, 191, 254], + Colour::BluishGreen => [16, 166, 116], + Colour::GreenBlue => [6, 180, 139], + Colour::DarkTan => [175, 136, 74], + Colour::GreenishBlue => [11, 139, 135], + Colour::PaleOrange => [255, 167, 86], + Colour::Vomit => [162, 164, 21], + Colour::ForrestGreen => [21, 68, 6], + Colour::DarkLavender => [133, 103, 152], + Colour::DarkViolet => [52, 1, 63], + Colour::PurpleBlue => [99, 45, 233], + Colour::DarkCyan => [10, 136, 138], + Colour::OliveDrab => [111, 118, 50], + Colour::Pinkish => [212, 106, 126], + Colour::Cobalt => [30, 72, 143], + Colour::NeonPurple => [188, 19, 254], + Colour::LightTurquoise => [126, 244, 204], + Colour::AppleGreen => [118, 205, 38], + Colour::DullGreen => [116, 166, 98], + Colour::Wine => [128, 1, 63], + Colour::PowderBlue => [177, 209, 252], + Colour::OffWhite => [255, 255, 228], + Colour::ElectricBlue => [6, 82, 255], + Colour::DarkTurquoise => [4, 92, 90], + Colour::BluePurple => [87, 41, 206], + Colour::Azure => [6, 154, 243], + Colour::BrightRed => [255, 0, 13], + Colour::PinkishRed => [241, 12, 69], + Colour::CornflowerBlue => [81, 112, 215], + Colour::LightOlive => [172, 191, 105], + Colour::Grape => [108, 52, 97], + Colour::GreyishBlue => [94, 129, 157], + Colour::PurplishBlue => [96, 30, 249], + Colour::YellowishGreen => [176, 221, 22], + Colour::GreenishYellow => [205, 253, 2], + Colour::MediumBlue => [44, 111, 187], + Colour::DustyRose => [192, 115, 122], + Colour::LightViolet => [214, 180, 252], + Colour::MidnightBlue => [2, 0, 53], + Colour::BluishPurple => [112, 59, 231], + Colour::RedOrange => [253, 60, 6], + Colour::DarkMagenta => [150, 0, 86], + Colour::Greenish => [64, 163, 104], + Colour::OceanBlue => [3, 113, 156], + Colour::Coral => [252, 90, 80], + Colour::Cream => [255, 255, 194], + Colour::ReddishBrown => [127, 43, 10], + Colour::BurntSienna => [176, 78, 15], + Colour::Brick => [160, 54, 35], + Colour::Sage => [135, 174, 115], + Colour::GreyGreen => [120, 155, 115], + Colour::White => [255, 255, 255], + Colour::RobinsEggBlue => [152, 239, 249], + Colour::MossGreen => [101, 139, 56], + Colour::SteelBlue => [90, 125, 154], + Colour::Eggplant => [56, 8, 53], + Colour::LightYellow => [255, 254, 122], + Colour::LeafGreen => [92, 169, 4], + Colour::LightGrey => [216, 220, 214], + Colour::Puke => [165, 165, 2], + Colour::PinkishPurple => [214, 72, 215], + Colour::SeaBlue => [4, 116, 149], + Colour::PalePurple => [183, 144, 212], + Colour::SlateBlue => [91, 124, 153], + Colour::BlueGrey => [96, 124, 142], + Colour::HunterGreen => [11, 64, 8], + Colour::Fuchsia => [237, 13, 217], + Colour::Crimson => [140, 0, 15], + Colour::PaleYellow => [255, 255, 132], + Colour::Ochre => [191, 144, 5], + Colour::MustardYellow => [210, 189, 10], + Colour::LightRed => [255, 71, 76], + Colour::Cerulean => [4, 133, 209], + Colour::PalePink => [255, 207, 220], + Colour::DeepBlue => [4, 2, 115], + Colour::Rust => [168, 60, 9], + Colour::LightTeal => [144, 228, 193], + Colour::Slate => [81, 101, 114], + Colour::Goldenrod => [250, 194, 5], + Colour::DarkYellow => [213, 182, 10], + Colour::DarkGrey => [54, 55, 55], + Colour::ArmyGreen => [75, 93, 22], + Colour::GreyBlue => [107, 139, 164], + Colour::Seafoam => [128, 249, 173], + Colour::Puce => [165, 126, 82], + Colour::SpringGreen => [169, 249, 113], + Colour::DarkOrange => [198, 81, 2], + Colour::Sand => [226, 202, 118], + Colour::PastelGreen => [176, 255, 157], + Colour::Mint => [159, 254, 176], + Colour::LightOrange => [253, 170, 72], + Colour::BrightPink => [254, 1, 177], + Colour::Chartreuse => [193, 248, 10], + Colour::DeepPurple => [54, 1, 63], + Colour::DarkBrown => [52, 28, 2], + Colour::Taupe => [185, 162, 129], + Colour::PeaGreen => [142, 171, 18], + Colour::PukeGreen => [154, 174, 7], + Colour::KellyGreen => [2, 171, 46], + Colour::SeafoamGreen => [122, 249, 171], + Colour::BlueGreen => [19, 126, 109], + Colour::Khaki => [170, 166, 98], + Colour::Burgundy => [97, 0, 35], + Colour::DarkTeal => [1, 77, 78], + Colour::BrickRed => [143, 20, 2], + Colour::RoyalPurple => [75, 0, 110], + Colour::Plum => [88, 15, 65], + Colour::MintGreen => [143, 255, 159], + Colour::Gold => [219, 180, 12], + Colour::BabyBlue => [162, 207, 254], + Colour::YellowGreen => [192, 251, 45], + Colour::BrightPurple => [190, 3, 253], + Colour::DarkRed => [132, 0, 0], + Colour::PaleBlue => [208, 254, 254], + Colour::GrassGreen => [63, 155, 11], + Colour::Navy => [1, 21, 62], + Colour::Aquamarine => [4, 216, 178], + Colour::BurntOrange => [192, 78, 1], + Colour::NeonGreen => [12, 255, 12], + Colour::BrightBlue => [1, 101, 252], + Colour::Rose => [207, 98, 117], + Colour::LightPink => [255, 209, 223], + Colour::Mustard => [206, 179, 1], + Colour::Indigo => [56, 2, 130], + Colour::Lime => [170, 255, 50], + Colour::SeaGreen => [83, 252, 161], + Colour::Periwinkle => [142, 130, 254], + Colour::DarkPink => [203, 65, 107], + Colour::OliveGreen => [103, 122, 4], + Colour::Peach => [255, 176, 124], + Colour::PaleGreen => [199, 253, 181], + Colour::LightBrown => [173, 129, 80], + Colour::HotPink => [255, 2, 141], + Colour::Black => [0, 0, 0], + Colour::Lilac => [206, 162, 253], + Colour::NavyBlue => [0, 17, 70], + Colour::RoyalBlue => [5, 4, 170], + Colour::Beige => [230, 218, 166], + Colour::Salmon => [255, 121, 108], + Colour::Olive => [110, 117, 14], + Colour::Maroon => [101, 0, 33], + Colour::BrightGreen => [1, 255, 7], + Colour::DarkPurple => [53, 6, 62], + Colour::Mauve => [174, 113, 129], + Colour::ForestGreen => [6, 71, 12], + Colour::Aqua => [19, 234, 201], + Colour::Cyan => [0, 255, 255], + Colour::Tan => [209, 178, 111], + Colour::DarkBlue => [0, 3, 91], + Colour::Lavender => [199, 159, 239], + Colour::Turquoise => [6, 194, 172], + Colour::DarkGreen => [3, 53, 0], + Colour::Violet => [154, 14, 234], + Colour::LightPurple => [191, 119, 246], + Colour::LimeGreen => [137, 254, 5], + Colour::Grey => [146, 149, 145], + Colour::SkyBlue => [117, 187, 253], + Colour::Yellow => [255, 255, 20], + Colour::Magenta => [194, 0, 120], + Colour::LightGreen => [150, 249, 123], + Colour::Orange => [249, 115, 6], + Colour::Teal => [2, 147, 134], + Colour::LightBlue => [149, 208, 252], + Colour::Red => [229, 0, 0], + Colour::Brown => [101, 55, 0], + Colour::Pink => [255, 129, 192], + Colour::Blue => [3, 67, 223], + Colour::Green => [21, 176, 26], + Colour::Purple => [126, 30, 156], + } + } +}