termcol: android icon palette (disabled)
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 8 Dec 2010 01:46:36 +0000 (02:46 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 15 Dec 2010 21:40:44 +0000 (22:40 +0100)
Incomparable to terminal colours.

termcol.plp

index 92844a50e86ccf2b0337205a3473abd943299ced..90f8a7cf200e95df870bc6ef1d996ea9e6175cde 100644 (file)
@@ -82,12 +82,24 @@ my %col = (
                qw/000000 650021 15b01a 6e750e 01153e 7e1e9c 029386 c5c9c7
                   929591 e50000 aaff32 ffff14 0343df ed0dd9 00ffff ffffff/,
        ],
                qw/000000 650021 15b01a 6e750e 01153e 7e1e9c 029386 c5c9c7
                   929591 e50000 aaff32 ffff14 0343df ed0dd9 00ffff ffffff/,
        ],
+       -android => [
+               sprintf('<a href="%s" title="%s">android</a>',
+                       'http://developer.android.com/guide/practices/ui_guidelines/icon_design.html',
+                       'recommended colour palette for Android icons',
+               ),
+               qw/white  light  medium dark   black  blue1  blue2  blue3
+                  green1 green2 green3 orange1 orange2 orange3 red /,
+       ],
+       android => [
+               qw/FFFFFF BFBFBF 808080 404040 000000 6699FF 3366CC 003399
+                  99CC33 00CC00 669933 FFCC00 FF9900 FF6600 CC0000 /,
+       ],
 );
 
 for my $term (qw/cga xterm tango html xkcd/) {
        print '<table>', "\n";
        printf "<caption>%s</caption>\n", $col{"-$term"}[0] || $term;
 );
 
 for my $term (qw/cga xterm tango html xkcd/) {
        print '<table>', "\n";
        printf "<caption>%s</caption>\n", $col{"-$term"}[0] || $term;
-       for my $num (0 .. 15) {
+       for my $num (0 .. $#{ $col{$term} }) {
                my $rgb = $col{$term}[$num];
                my $name = $col{"-$term"}[$num + 1] || $num;
                $name = [ $name, ['#333'] ] if $term eq 'xkcd';
                my $rgb = $col{$term}[$num];
                my $name = $col{"-$term"}[$num + 1] || $num;
                $name = [ $name, ['#333'] ] if $term eq 'xkcd';