Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$input = "A fff9d0 A_aqua b8ffeb A_B d0fefe A_cyan b7fffa A_E fdfdfe A_G c7fdb5 A_gold fdde6c A_L_G b1fc99 A_lavender eecffe A_lilac e4cbff A_lime befd73 A_lime_G b1ff65 A_magenta d767ad A_mauve fed0fc A_N b1916e A_O ffa756 A_olive b9cc81 A_olive_G b1d27b A_P ffcfdc A_peach ffe5ad A_R d9544d A_rose fdc1c5 A_salmon ffb19a A_sky_B bdf6fe A_teal 82cbb2 A_turquoise a5fbd5 A_U b790d4 A_violet ceaefa A_Y ffff84 acid_G 8ffe09 adobe bd6c48 algae 54ac68 algae_G 21c36f almost_black 070d0d amber feb308 amethyst 9b5fc0 apple 6ecb3c apple_G 76cd26 apricot ffb16d aqua 13eac9 aqua_B 02d8e9 aqua_G 12e193 aqua_marine 2ee8bb aquamarine 04d8b2 army_G 4b5d16 asparagus 77ab56 aubergine 3d0734 auburn 9a3001 avocado 90b134 avocado_G 87a922 azul 1d5dec azure 069af3 B 0343df B/E 758da3 B/G 0f9b8e B/U 5a06ef B_B 2242c7 B_E 607c8e B_G 137e6d B_U 5729ce B_violet 5d06e9 B_with_a_hint_of_U 533cc6 baby_B a2cffe baby_G 8cff9e baby_P ffb7ce baby_poo ab9004 baby_poop 937c00 baby_poop_G 8f9805 baby_puke_G b6c406 baby_shit_G 889717 baby_shit_N ad900d baby_U ca9bf7 banana ffff7e banana_Y fafe4b barbie_P fe46a5 barf_G 94ac02 barney ac1db8 barney_U a00498 battleship_E 6b7c85 Bberry 464196 BE 85a3b2 beige e6daa6 berry 990f4b BG 017a79 bile b5c306 black 000000 bland afa88b blood 770001 blood_O fe4b03 blood_R 980002 bluish 2976bb bluish_E 748b97 bluish_G 10a674 bluish_U 703be7 blurple 5539cc blush f29e8e blush_P fe828c booger 9bb53c booger_G 96b403 bordeaux 7b002c boring_G 63b365 bottle_G 044a05 brick a03623 brick_O c14a09 brick_R 8f1402 british_racing_G 05480d bronze a87900 bruise 7e4071 bubble_gum_P ff69af bubblegum ff6cb5 bubblegum_P fe83cc buff fef69e burgundy 610023 burnt_O c04e01 burnt_R 9f2305 burnt_siena b75203 burnt_sienna b04e0f burnt_umber a0450e burnt_Y d5ab09 burple 6832e3 butter ffff81 butter_Y fffd74 butterscotch fdb147 By_E 89a0b0 By_G 2bb179 By_U 6241c7 cadet_B 4e7496 camel c69f59 camo 7f8f4e camo_G 526525 camouflage_G 4b6113 canary fdff63 canary_Y fffe40 candy_P ff63e9 caramel af6f09 carmine 9d0216 carnation fd798f carnation_P ff7fa7 carolina_B 8ab8fe celadon befdb7 celery c1fd95 cement a5a391 cerise de0c62 cerulean 0485d1 cerulean_B 056eee charcoal 343837 charcoal_E 3c4142 chartreuse c1f80a cherry cf0234 cherry_R f7022a chestnut 742802 chocolate 3d1c02 chocolate_N 411900 cinnamon ac4f06 claret 680018 clay b66a50 clay_N b2713d clear_B 247afd cloudy_B acc2d9 cobalt 1e488f cobalt_B 030aa7 cocoa 875f42 coffee a6814c cool_B 4984b8 cool_E 95a3a6 cool_G 33b864 copper b66325 coral fc5a50 coral_P ff6163 cornflower 6a79f7 cornflower_B 5170d7 cranberry 9e003a cream ffffc2 creme ffffb6 crimson 8c000f custard fffd78 cyan 00ffff D 1b2431 D_aqua 05696b D_aquamarine 017371 D_B 00035b D_B_E 1f3b4d D_B_G 005249 D_beige ac9362 D_coral cf524e D_cream fff39a D_cyan 0a888a D_E 363737 D_E_B 29465b D_forest_G 002d04 D_fuchsia 9d0759 D_G 033500 D_G_B 1f6357 D_gold b59410 D_grass_G 388004 D_hot_P d90166 D_indigo 1f0954 D_khaki 9b8f55 D_lavender 856798 D_lilac 9c6da5 D_lime 84b701 D_lime_G 7ebd01 D_magenta 960056 D_maroon 3c0008 D_mauve 874c62 D_mint 48c072 D_mint_G 20c073 D_mustard a88905 D_N 341c02 D_navy 000435 D_navy_B 00022e D_O c65102 D_olive 373e02 D_olive_G 3c4d03 D_P cb416b D_pastel_G 56ae57 D_peach de7e5d D_periwinkle 665fd1 D_plum 3f012c D_R 840000 D_rose b5485d D_royal_B 02066f D_sage 598556 D_salmon c85a53 D_sand a88f59 D_sea_G 11875d D_seafoam 1fb57a D_seafoam_G 3eaf76 D_sky_B 448ee4 D_slate_B 214761 D_tan af884a D_taupe 7f684e D_teal 014d4e D_turquoise 045c5a D_U 35063e D_violet 34013f D_Y d5b60a D_Y_G 728f02 dandelion fedf08 DB 030764 deep_aqua 08787f deep_B 040273 deep_G 02590f deep_lavender 8d5eb7 deep_lilac 966ebd deep_magenta a0025c deep_N 410200 deep_O dc4d01 deep_P cb0162 deep_R 9a0200 deep_rose c74767 deep_sea_B 015482 deep_sky_B 0d75f8 deep_teal 00555a deep_turquoise 017374 deep_U 36013f deep_violet 490648 denim 3b638c denim_B 3b5b92 desert ccad60 DG 054907 diarrhea 9f8303 dirt 8a6e45 dirt_N 836539 dirty_B 3f829d dirty_G 667e2c dirty_O c87606 dirty_P ca7b80 dirty_U 734a65 dirty_Y cdc50a Dish_B 014182 Dish_G 287c37 Dish_P da467d Dish_R a90308 Dish_U 751973 dodger_B 3e82fc drab 828344 drab_G 749551 dried_blood 4b0101 duck_egg_B c3fbf4 dull_B 49759c dull_G 74a662 dull_N 876e4b dull_O d8863b dull_P d5869d dull_R bb3f3f dull_teal 5f9e8f dull_U 84597e dull_Y eedc5b dusk 4e5481 dusk_B 26538d dusky_B 475f94 dusky_P cc7a8b dusky_rose ba6873 dusky_U 895b7b dust b2996e dusty_B 5a86ad dusty_G 76a973 dusty_lavender ac86a8 dusty_O f0833a dusty_P d58a94 dusty_R b9484e dusty_rose c0737a dusty_teal 4c9085 dusty_U 825f87 E 929591 E/B 647d8e E/G 86a17d E_B 6b8ba4 E_G 789b73 E_N 7f7053 E_P c3909b E_teal 5e9b8a E_U 826d8c earth a2653e easter_G 8cfd7e easter_U c071fe EB 77a1b5 ecru feffca egg_shell fffcc4 eggplant 380835 eggplant_U 430541 eggshell ffffd4 eggshell_B c4fff7 Eish a8a495 Eish_B 5e819d Eish_G 82a67d Eish_N 7a6a4f Eish_P c88d94 Eish_teal 719f91 Eish_U 887191 electric_B 0652ff electric_G 21fc0d electric_lime a8ff04 electric_P ff0490 electric_U aa23ff emerald 01a049 emerald_G 028f1e everG 05472a faded_B 658cbb faded_G 7bb274 faded_O f0944d faded_P de9dac faded_R d3494e faded_U 916e99 faded_Y feff7f fawn cfaf7b fern 63a950 fern_G 548d44 fire_engine_R fe0002 flat_B 3c73a8 flat_G 699d4c fluorescent_G 08ff08 fluro_G 0aff02 foam_G 90fda9 forest 0b5509 forest_G 06470c forrest_G 154406 french_B 436bad fresh_G 69d84f frog_G 58bc08 fuchsia ed0dd9 G 15b01a G/B 01c08d G/Y b5ce08 G_apple 5edc1f G_B 06b48b G_E 77926f G_N 544e03 G_teal 0cb577 G_Y c9ff27 GB 23c48b Gish 40a368 Gish_B 0b8b87 Gish_beige c9d179 Gish_cyan 2afeb7 Gish_E 96ae8d Gish_N 696112 Gish_tan bccb7a Gish_teal 32bf84 Gish_turquoise 00fbb0 Gish_Y cdfd02 gold dbb40c golden f5bf03 golden_N b27a01 golden_rod f9bc08 golden_Y fec615 goldenrod fac205 grape 6c3461 grape_U 5d1451 grapefruit fd5956 grass 5cac2d grass_G 3f9b0b grassy_G 419c03 gross_G a0bf16 gunmetal 536267 Gy_B 42b395 Gy_E 7ea07a Gy_N 696006 Gy_Y c6f808 hazel 8e7618 heather a484ac heliotrope d94ff5 highLer_G 1bfc06 hospital_G 9be5aa hot_G 25ff29 hot_magenta f504c9 hot_P ff028d hot_U cb00f5 hunter_G 0b4008 I_aqua 0bf9ea I_B 0165fc I_cyan 41fdfe I_G 01ff07 I_L_B 26f7fd I_L_G 2dfe54 I_lavender c760ff I_lilac c95efb I_lime 87fd05 I_lime_G 65fe08 I_magenta ff08e8 I_O ff5b00 I_olive 9cbb04 I_P fe01b1 I_R ff000d I_sea_G 05ffa6 I_sky_B 02ccfe I_teal 01f9c6 I_turquoise 0ffef9 I_U be03fd I_violet ad0afd I_Y fffd01 I_Y_G 9dff00 ice d6fffa ice_B d7fffe icky_G 8fae22 indian_R 850e04 indigo 380282 indigo_B 3a18b1 iris 6258c4 irish_G 019529 ivory ffffcb jade 1fa774 jade_G 2baf6a jungle_G 048243 kelley_G 009337 kelly_G 02ab2e kermit_G 5cb200 key_lime aeff6e khaki aaa662 khaki_G 728639 kiwi 9cef43 kiwi_G 8ee53f L_aqua 8cffdb L_aquamarine 7bfdc7 L_B 95d0fc L_B_E b7c9e2 L_B_G 7efbb3 L_beige fffeb6 L_bluish_G 76fda8 L_burgundy a8415b L_cyan acfffc L_E d8dcd6 L_E_B 9dbcd4 L_E_G b7e1a1 L_eggplant 894585 L_forest_G 4f9153 L_G 96f97b L_G_B 56fca2 L_Gish_B 63f7b4 L_gold fddc5c L_grass_G 9af764 L_I_G 53fe5c L_indigo 6d5acf L_khaki e6f2a2 L_L_B cafffb L_L_G c8ffb0 L_lavendar efc0fe L_lavender dfc5fe L_lilac edc8ff L_lime aefd6c L_lime_G b9ff66 L_magenta fa5ff7 L_maroon a24857 L_mauve c292a1 L_mint b6ffbb L_mint_G a6fbb2 L_moss_G a6c875 L_mustard f7d560 L_N ad8150 L_navy 155084 L_navy_B 2e5a88 L_neon_G 4efd54 L_O fdaa48 L_olive acbf69 L_olive_G a4be5c L_P ffd1df L_pastel_G b2fba5 L_pea_G c4fe82 L_peach ffd8b1 L_periwinkle c1c6fc L_plum 9d5783 L_R ff474c L_rose ffc5cb L_royal_B 3a2efe L_sage bcecac L_salmon fea993 L_sea_G 98f6b0 L_seafoam a0febf L_seafoam_G a7ffb5 L_sky_B c6fcff L_tan fbeeac L_teal 90e4c1 L_turquoise 7ef4cc L_U bf77f6 L_urple b36ff6 L_violet d6b4fc L_Y fffe7a L_Y_G ccfd7f L_Yish_G c2ff89 lavender c79fef lavender_B 8b88f8 lavender_P dd85d7 lawn_G 4da409 LB 7bc8f6 leaf 71aa34 leaf_G 5ca904 leafy_G 51b73b leather ac7434 lemon fdff52 lemon_G adf802 lemon_lime bffe28 lemon_Y fdff38 Ler_G 75fd63 Ler_U a55af4 LG 76ff7b lichen 8fb67b lilac cea2fd liliac c48efd lime aaff32 lime_G 89fe05 lime_Y d0fe1d lipstick d5174e lipstick_R c0022f Lish_B 3d7afd Lish_G 61e160 Lish_R fe2f4a Lish_U a552e6 macaroni_and_cheese efb435 magenta c20078 mahogany 4a0100 maize f4d054 mango ffa62b manilla fffa86 marigold fcc006 marine 042e60 marine_B 01386a maroon 650021 mauve ae7181 medium_B 2c6fbb medium_E 7d7f7c medium_G 39ad48 medium_N 7f5112 medium_P f36196 medium_U 9e43a2 melon ff7855 merlot 730039 metallic_B 4f738e mid_B 276ab3 mid_G 50a747 midnight 03012d midnight_B 020035 midnight_U 280137 military_G 667c3e milk_chocolate 7f4e1e mint 9ffeb0 mint_G 8fff9f minty_G 0bf77d mocha 9d7651 moss 769958 moss_G 658b38 mossy_G 638b27 mud 735c12 mud_G 606602 mud_N 60460f muddy_G 657432 muddy_N 886806 muddy_Y bfac05 mulberry 920a4e murky_G 6c7a0e mushroom ba9e88 mustard ceb301 mustard_G a8b504 mustard_N ac7e04 mustard_Y d2bd0a muted_B 3b719f muted_G 5fa052 muted_P d1768f muted_U 805b87 N 653700 N_E 8d8468 N_G 706c11 N_O b96902 N_R 922b05 N_Y b29705 nasty_G 70b23f navy 01153e navy_B 001146 navy_G 35530a neon_B 04d9ff neon_G 0cff0c neon_P fe019a neon_R ff073a neon_U bc13fe neon_Y cfff04 nice_B 107ab0 night_B 040348 Nish 9c6d57 Nish_E 86775f Nish_G 6a6e09 Nish_O cb7723 Nish_P c27e79 Nish_R 9e3623 Nish_U 76424e Nish_Y c9b003 Ny_G 6f6c0a Ny_O ca6b02 O f97306 O_N be6400 O_P ff6f52 O_R fd411e O_Y ffad01 ocean 017b92 ocean_B 03719c ocean_G 3d9973 ocher bf9b0c ochre bf9005 ocre c69c04 off_B 5684ae off_G 6ba353 off_white ffffe4 off_Y f1f33f Oish fd8d49 old_P c77986 old_rose c87f89 olive 6e750e olive_drab 6f7632 olive_G 677a04 olive_N 645403 olive_Y c2b709 OR fe420f orangish fc824a orangish_N b25f03 orangish_R f43605 orchid c875c4 Oy_N b16002 Oy_R fa4224 Oy_Y fdb915 P ff81c0 P/U ef1de7 P_R f5054f P_U db4bda parchment fefcaf pastel_B a2bffe pastel_G b0ff9d pastel_O ff964f pastel_P ffbacd pastel_R db5856 pastel_U caa0ff pastel_Y fffe71 pea a4bf20 pea_G 8eab12 pea_soup 929901 pea_soup_G 94a617 peach ffb07c peachy_P ff9a8a peacock_B 016795 pear cbf85f periwinkle 8e82fe periwinkle_B 8f99fb perrywinkle 8f8ce7 petrol 005f6a pig_P e78ea5 pine 2b5d34 pine_G 0a481e Pish d46a7e Pish_E c8aca9 Pish_N b17261 Pish_O ff724c Pish_R f10c45 Pish_tan d99b82 Pish_U d648d7 piss_Y ddd618 pistachio c0fa8b plum 580f41 plum_U 4e0550 poison_G 40fd14 poo 8f7303 poo_N 885f01 poop 7f5e00 poop_G 6f7c00 poop_N 7a5901 powder_B b1d1fc powder_P ffb2d0 primary_B 0804f9 prussian_B 004577 puce a57e52 puke a5a502 puke_G 9aae07 puke_N 947706 puke_Y c2be0e pumpkin e17701 pumpkin_O fb7d07 pure_B 0203e2 purplish 94568c purplish_B 601ef9 purplish_E 7a687f purplish_N 6b4247 purplish_P ce5dae purplish_R b0054b purply 983fb2 purply_B 661aee purply_P f075e6 putty beae8a Py fc86aa Py_R fc2647 Py_U c94cbe R e50000 R_N 8b2e16 R_O fd3c06 R_P fa2a55 R_U 820747 R_violet 9e0168 R_wine 8c0034 racing_G 014600 radioactive_G 2cfa1f raspberry b00149 raw_sienna 9a6200 raw_umber a75e09 Rdish c44240 Rdish_E 997570 Rdish_N 7f2b0a Rdish_O f8481c Rdish_P fe2c54 Rdish_U 910951 Rdy_N 6e1005 really_L_B d4ffff rich_B 021bf9 rich_U 720058 robin's_egg 6dedfd robin's_egg_B 98eff9 robin_egg_B 8af1fe rosa fe86a4 rose cf6275 rose_P f7879a rose_R be013c rosy_P f6688e rouge ab1239 royal 0c1793 royal_B 0504aa royal_U 4b006e ruby ca0147 russet a13905 rust a83c09 rust_N 8b3103 rust_O c45508 rust_R aa2704 rusty_O cd5909 rusty_R af2f0d saffron feb209 sage 87ae73 sage_G 88b378 salmon ff796c salmon_P fe7b7c sand e2ca76 sand_N cba560 sand_Y fce166 sandstone c9ae74 sandy f1da7a sandy_N c4a661 sandy_Y fdee73 sap_G 5c8b15 sapphire 2138ab scarlet be0119 sea 3c9992 sea_B 047495 sea_G 53fca1 seafoam 80f9ad seafoam_B 78d1b6 seafoam_G 7af9ab seaweed 18d17b seaweed_G 35ad6b sepia 985e2b shamrock 01b44c shamrock_G 02c14d shit 7f5f00 shit_G 758000 shit_N 7b5804 shocking_P fe02a2 sick_G 9db92c sickly_G 94b21c sickly_Y d0e429 sienna a9561e silver c5c9c7 sky 82cafc sky_B 75bbfd slate 516572 slate_B 5b7c99 slate_E 59656d slate_G 658d6d slime_G 99cc04 snot acbb0d snot_G 9dc100 soft_B 6488ea soft_G 6fc276 soft_P fdb0c0 soft_U a66fb5 spearmint 1ef876 spring_G a9f971 spruce 0a5f38 squash f2ab15 steel 738595 steel_B 5a7d9a steel_E 6f828a stone ada587 stormy_B 507b9c straw fcf679 strawberry fb2943 strong_B 0c06f7 strong_P ff0789 sun_Y ffdf22 sunflower ffc512 sunflower_Y ffda03 sunny_Y fff917 sunshine_Y fffd37 swamp 698339 swamp_G 748500 tan d1b26f tan_G a9be70 tan_N ab7e4c tangerine ff9408 taupe b9a281 tea 65ab7c tea_G bdf8a3 teal 029386 teal_B 01889f teal_G 25a36f tealish 24bca8 tealish_G 0cdc73 terra_cotta c9643b terracota cb6843 terracotta ca6641 tiffany_B 7bf2da tomato ef4026 tomato_R ec2d01 topaz 13bbaf toupe c7ac7d toxic_G 61de2a tree_G 2a7e19 true_B 010fcc true_G 089404 turquoise 06c2ac turquoise_B 06b1c4 turquoise_G 04f489 turtle_G 75b84f twiL 4e518b twiL_B 0a437a U 7e1e9c U/B 5d21d0 U/P d725de U_B 632de9 U_E 866f85 U_N 673a3f U_P e03fd8 U_R 990147 ugly_B 31668a ugly_G 7a9703 ugly_N 7d7103 ugly_P cd7584 ugly_U a442a0 ugly_Y d0c101 Uish 98568d Uish_B 6140ef Uish_P df4ec8 ultramarine 2000b1 ultramarine_B 1805db umber b26400 Uy 8756e4 Uy_B 5f34e7 Uy_E 947e94 Uy_P c83cb9 velvet 750851 vermillion f4320c very_A_B d6fffe very_A_G cffdbc very_D_B 000133 very_D_G 062e03 very_D_N 1d0200 very_D_U 2a0134 very_L_B d5ffff very_L_G d1ffbd very_L_N d3b683 very_L_P fff4f2 very_L_U f6cefc vibrant_B 0339f8 vibrant_G 0add08 vibrant_U ad03de violet 9a0eea violet_B 510ac9 violet_P fb5ffc violet_R a50055 viridian 1e9167 vivid_B 152eff vivid_G 2fef10 vivid_U 9900fa vomit a2a415 vomit_G 89a203 vomit_Y c7c10c warm_B 4b57db warm_E 978a84 warm_N 964e02 warm_P fb5581 warm_U 952e8f washed_out_G bcf5a6 water_B 0e87cc watermelon fd4659 weird_G 3ae57f wheat fbdd7e white ffffff windows_B 3778bf wine 80013f wine_R 7b0323 winterG 20f986 wisteria a87dc2 Y ffff14 Y/G c8fd3d Y_G c0fb2d Y_N b79400 Y_O fcb001 Y_ochre cb9d06 Y_tan ffe36e YG bbf90f Yish faee66 Yish_G b0dd16 Yish_N 9b7a01 Yish_O ffab0f Yish_tan fcfc81 Yy_G bff128 Yy_N ae8b0c";
use IO::Compress::Gzip qw(gzip $GzipError);
gzip \$input => \$output;
$escaped_output = $output;
$escaped_output =~ s/'/\\'/g;
print q{use IO::Uncompress::Gunzip qw(gunzip);gunzip\\'}.$escaped_output.q{'=>\$_;for$v(qw{A/pale B/blue D/dark E/grey G/green I/bright L/light N/brown O/orange P/pink R/red U/purple Y/yellow}){eval"s/$v/g"}print"#".{m![/\w']+!g}->{<>=~s/ /_/gr}};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.