termcol: distinguish 2C0x and analog ppu
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 7 May 2017 11:30:32 +0000 (13:30 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 29 May 2017 17:23:12 +0000 (19:23 +0200)
Rename 7-bit digital version and create an analog variant based on NTSC
values, generated by <http://drag.wootest.net/misc/palgen.html> with sRGB
colorimetry and tuned (hue=0, sat=1, bri=.05, con=1, gam=1) to appear
similar to other (overly saturated) versions.

termcol.inc.pl

index 3c3b365c30ff28f00b4ec3e2038c93a4abf0110e..b004397a74ac4425274d3017a3422c40c7f55e56 100644 (file)
@@ -1,11 +1,12 @@
 use 5.014;
+use utf8;
 use Shiar_Sheet::Colour 1.05;
 
 +{
        default => [qw( ansi ansi88 ansi256 )],
        more    => [qw( ansi mirc pastel slutty solarized ansi88 ansi256 )],
        ansi    => [qw( cga putty xterm tango app html cgarne )],
-       legacy  => [qw( c64 msx mac2 risc arnegame dawnbringer cpc cpcboy shiar32 ppu shovel 64 )],
+       legacy  => [qw( c64 msx mac2 risc arnegame dawnbringer cpc cpcboy shiar32 ppu 2c03 shovel 64 )],
 
        xcolors => sub {
                my $pals = do 'data/termcol-xcolor.inc.pl' or die $! || $@;
@@ -297,6 +298,26 @@ use Shiar_Sheet::Colour 1.05;
 
        ppu => {
                name => '<abbr title="Picture Processing Unit">PPU</abbr> (Famicom/NES)',
+               table => [
+                       [qw( 717171:00 BABABA:10 FFFFFF:20 FFFFFF:<s>30</s> )],
+                       [qw( 012FB3:01 235CFF:11 5380FF:21 ACC1FF:31 )],
+                       [qw( 2B17C2:02 5139FF:12 7562FF:22 BAB1FF:32 )],
+                       [qw( 5705AA:03 932AFF:13 AC5AFF:23 D7B1FF:33 )],
+                       [qw( 780071:04 C222BA:14 FE69F6:24 FEC0FB:34 )],
+                       [qw( 860627:05 D52C57:15 FE6A90:25 FEBECF:35 )],
+                       [qw( 7C1800:06 C84300:16 FE853F:26 FECBAD:36 )],
+                       [qw( 5F3100:07 A16400:17 F2B403:27 FEE59D:37 )],
+                       [qw( 344900:08 698400:18 B9D500:28 E9F596:38 )],
+                       [qw( 095B00:09 2F9B00:19 7FEC0F:29 D1FFA3:39 )],
+                       [qw( 006100:0A 04A40D:1A 52F55B:2A BCFFC0:3A )],
+                       [qw( 005A39:0B 009B6F:1B 40EBBF:2B B7FEEC:3B )],
+                       [qw( 004881:0C 0083CE:1C 43BBFF:2C AEE1FF:3C )],
+                       [qw( 000000:0D 0C0C0C:1D 5B5B5B:2D C3C3C3:3D )],
+               ],
+               hueorder => [6..12, 1..5, 13, 0],
+       },
+       '2c03' => {
+               name => '2C03–5 PPU (PlayChoice/Famicom)',
                table => [
                        do {
                                my @rgb = qw(
@@ -323,10 +344,10 @@ use Shiar_Sheet::Colour 1.05;
                                ] } 0..13
                        }
                ],
-               hueorder => [6..12, 1..5, 13, 0],
+               parent => 'ppu',
        },
        shovel => {
-               name => 'NES for Shovel Knight',
+               name => 'Shovel Knight PPU',
                table => [
                        [qw( 7C7C7C:00 BCBCBC:10 F8F8F8:20 FCFCFC:30 )],
                        [qw( 0000FC:01 0078F8:11 3CBCFC:21 A4E4FC:31 )],