termcol: hue order option for comparison with rgb maps
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 21 Dec 2015 00:17:23 +0000 (01:17 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 5 Jan 2016 00:05:07 +0000 (01:05 +0100)
termcol.inc.pl

index 38b89a0..d82b265 100644 (file)
@@ -12,6 +12,7 @@ use Shiar_Sheet::Colour '1.02';
                        808080:gray  FF0000:red     00FF00:lime  FFFF00:yellow
                        0000FF:blue  FF00FF:fuchsia 00FFFF:aqua  FFFFFF:white
                )],
+               parent => 'cga',
        },
        cga => {
                # linux console, kde?
@@ -20,6 +21,7 @@ use Shiar_Sheet::Colour '1.02';
                        555555 FF5555 55FF55 FFFF55 5555FF FF55FF 55FFFF FFFFFF
                )],
                # reset bold dim italic underline blink fastblink reverse hidden
+               hueorder => [ 1,3,2,6,4,5, 0,7 , 9,11,10,14,12,13, 8,15 ],
        },
        xterm => {
                # rxvt except for blues
@@ -27,6 +29,7 @@ use Shiar_Sheet::Colour '1.02';
                        000000 CC0000 00CC00 CCCC00 4682B4 CC00CC 00CCCC E5E5E5
                        4C4C4C FF0000 00FF00 FFFF00 1E90FF FF00FF 00FFFF FFFFFF
                )],
+               parent => 'cga',
        },
        tango => {
                # default Gnome theme
@@ -34,6 +37,7 @@ use Shiar_Sheet::Colour '1.02';
                        2E3436 CC0000 4E9A06 C4A000 3465A4 75507B 06989A D3D7CF
                        555753 EF2929 8AE234 FCE94F 729FCF AD7FA8 34E2E2 EEEEEC
                )],
+               parent => 'cga',
        },
        xkcd => {
                title => 'human averages in xkcd survey results',
@@ -44,6 +48,7 @@ use Shiar_Sheet::Colour '1.02';
                        929591:grey  e50000:red     aaff32:lime  ffff14:yellow
                        0343df:blue  ed0dd9:fuchsia 00ffff:cyan  ffffff:white
                )],
+               parent => 'cga',
        },
        android => {
                href => 'http://developer.android.com/guide/practices/ui_guidelines/icon_design.html',
@@ -62,6 +67,7 @@ use Shiar_Sheet::Colour '1.02';
                        000000 990B00 35A600 999900 0000B3 B304B2 31A6B3 BFBFBF
                        666666 E51600 48D901 E5E600 0100FF E607E5 48E6E6 E6E5E6
                )],
+               parent => 'cga',
        },
        iterm => {
                name => 'iTerm',
@@ -70,6 +76,7 @@ use Shiar_Sheet::Colour '1.02';
                        000000 BB0000 00BB00 BBBB00 0000BB BB00BB 00BBBB BBBBBB
                        555555 FF5555 55FF55 FFFF55 5555FF FF55FF 55FFFF FFFFFF
                )],
+               parent => 'cga',
        },
        pastel => {
                name => 'iTerm Pastel',
@@ -77,6 +84,7 @@ use Shiar_Sheet::Colour '1.02';
                        4F4F4F FF6C60 A8FF60 FFFFB6 96CBFE FF73FD C6C5FE EEEEEE
                        7C7C7C FFB6B0 CEFFAC FFFFCC B5DCFF FF9CFE DFDFFE FFFFFF
                )],
+               parent => 'cga',
        },
        putty => {
                name => 'PuTTY',
@@ -84,6 +92,7 @@ use Shiar_Sheet::Colour '1.02';
                        000000 BB0000 00BB00 BBBB00 0000BB BB00BB 00BBBB BBBBBB
                        555555 FF5555 55FF55 FFFF55 5555FF FF55FF 55FFFF FFFFFF
                )],
+               parent => 'cga',
        },
        slutty => {
                name => 'SluTTY',
@@ -93,6 +102,7 @@ use Shiar_Sheet::Colour '1.02';
                        000000 9C1D1D 6C9446 AC9A47 335786 8F6496 486768 E0DCDC
                        2F2F2F CD5757 8FC35B D1C45E 5C81A9 BC95B7 76CBCB EEEEEC
                )],
+               parent => 'cga',
        },
        mirc => {
                name => 'mIRC',
@@ -102,6 +112,7 @@ use Shiar_Sheet::Colour '1.02';
                        FFFF00 00FC00 009393 00FFFF 0000FC FF00FF 7F7F7F D2D2D2
                )],
                ansiorder => [ 1,5,3,7,2,6,10,15 , 14,4,9,8,12,13,11,0  ],
+               hueorder => [ 5,7,3,10,2,6, 1,15 , 4,8,9,11,12,13, 14,0 ],
        },
        mac2 => {
                name => 'MacII',
@@ -110,6 +121,7 @@ use Shiar_Sheet::Colour '1.02';
                        1FB714 006412 562C05 90713A C0C0C0 808080 404040 000000
                )],
                ansiorder => [ 15,3,9,11,6,5,7,12 , 14,2,8,1,10,4,13,0 ],
+               hueorder => [ 3,2,1,8,7,6,5,4 , 10,11,9 , 15,14,13,12,0 ],
        },
        risc => {
                name => 'RISC',  # v2/3
@@ -118,6 +130,7 @@ use Shiar_Sheet::Colour '1.02';
                        004499 EEEE00 00CC00 DD0000 EEEEBB 558800 FFBB00 00BBFF
                )],
                ansiorder => [ 7,5,13,14,4,3,2,1 , 6,11,10,9,8,12,15,0 ],
+               hueorder => [ 11,14,9,12,13,10,15,8 , reverse 0..7 ],
        },
        c64 => {
                name => 'C=64',  # commodore 64/128
@@ -144,6 +157,7 @@ use Shiar_Sheet::Colour '1.02';
                        12+6 8+7 16+5 10   15   24-2 15+0 20
                )],
                ansiorder => [ 0,2,5,9,6,4,3,15 , 11,10,13,7,14,8,12,1 ],
+               hueorder => [ 2,8,7,5,3,6,4,9 , 10,13,14,0,11,12,15,1 ],
        },
        msx1 => {
                name => 'MSX',
@@ -159,6 +173,7 @@ use Shiar_Sheet::Colour '1.02';
                        0.47;0.23;0.13 0.53;0.67;0.73 0.80;0.47;0.47 1.00;0.47;0.47
                )],
                ansiorder => [ 0,6,12,10,4,13,7,14 , 1,8,2,11,5,9,3,15 ],
+               hueorder => [ 8,10,2,12,4,6, 1,0 , 9,11,3,7,5,13, 14,15 ],
        },
        msx2 => {
                name => 'MSX2',
@@ -189,8 +204,9 @@ use Shiar_Sheet::Colour '1.02';
                        F7E26B::zornskin 2F484E::shade   44891A::leaf    A3CE27::slime
                        1B2632::night    005784::sea     31A2F2::sky     B2DCEF::cloud
                )],
-               order => [ 0,5,9,12 , 3,6,10,13,1 , 4,7,8,11,14,15,2 ], # by brightness
+               hueorder => [ 3,7,8,11,10,9,13,14 , 4,6,5,15,12,0,1,2 ],
                ansiorder => [ 0,3,10,6,13,12,9,1 , 5,7,11,8,14,4,15,2 ],
+               lumorder => [ 0,5,9,12 , 3,6,10,13,1 , 4,7,8,11,14,15,2 ], # by brightness
        },
        dawnbringer => {
                href => 'http://pixeljoint.com/forum/forum_posts.asp?TID=12795',
@@ -201,6 +217,7 @@ use Shiar_Sheet::Colour '1.02';
                        597DCE D27D2C 8595A1 6DAA2C D2AA99 6DC2CA DAD45E DEEED6
                )],
                ansiorder => [ 0,1,5,4,2,12,10,7 , 3,6,11,14,8,9,13,15 ],
+               hueorder => [ 6,9,14,11,13,8,2,1 , 12,4,7,5,15,10,3,0 ],
        },
 
        cpc => {