From: Mischa POSLAWSKY Date: Mon, 26 Oct 2015 15:20:42 +0000 (+0100) Subject: termcol: annotate game colour names X-Git-Tag: v1.9~109 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/7c2741fb552197204bdbec68e3767b21e914d517 termcol: annotate game colour names --- diff --git a/termcol.plp b/termcol.plp index c15e676..c3bdbd2 100644 --- a/termcol.plp +++ b/termcol.plp @@ -164,8 +164,10 @@ my %col = ( 'Generic 16 color game palette by Arne Niklas Jansson', 'game', ), - qw/ 000000 9D9D9D FFFFFF BE2633 E06F8B 493C2B A46422 EB8931 - F7E26B 2F484E 44891A A3CE27 1B2632 005784 31A2F2 B2DCEF /, + qw/ 000000::void 9D9D9D::ash FFFFFF::blind BE2633::bloodred + E06F8B::pigmeat 493C2B::oldpoop A46422::newpoop EB8931::blaze + F7E26B::zornskin 2F484E::shade 44891A::leaf A3CE27::slime + 1B2632::night 005784::sea 31A2F2::sky B2DCEF::cloud /, ], ); @@ -173,7 +175,7 @@ for my $term (qw/cga xterm tango app html xkcd/) { print '', "\n"; printf "\n", $col{$term}[0] || $term; for my $num (1 .. $#{ $col{$term} }) { - my ($rgb, $name) = split /:/, $col{$term}[$num], 2; + my ($rgb, $name) = split /:/, $col{$term}[$num], 3; $name ||= $num - 1; $name = [ $name, ['#333'] ] if $term eq 'xkcd'; print '', colcell($name, $rgb);
%s