termcol: neslike option
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 5 Jun 2017 22:52:39 +0000 (00:52 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 17 Jul 2017 15:13:42 +0000 (17:13 +0200)
Alternate "NES* (nes like)" conversion by 0xDB from
<http://gamedevelopersrefuge.org/viewtopic.php?p=42520#42520>:

> the generator routine is based on PPU descriptions
> http://problemkaputt.de/everynes.htm#ppupalettes and
> http://nesdev.com/2C02%20technical%20reference.TXT and
> on NTSC signal descriptions and on YPBPR to RGB conversions

> improved based on angles of the colorwheel description from
> http://www.ntsc-tv.com/ntsc-index-06.htm

termcol.inc.pl

index 48defa4..88c1245 100644 (file)
@@ -357,6 +357,27 @@ use Shiar_Sheet::Colour 1.05;
                ],
                parent => 'ppu',
        },
+       neslike => {
+               name => '0xDB NESLike',
+               table => [
+                       [qw( 3F3F3F:00 7F7F7F:10 F9F9F9:20 FFFFFF:30 )],
+                       [qw( 2B34AD:01 6B74ED:11 ABB4FF:21 EAF3FF:31 )],
+                       [qw( 591DAB:02 995DEB:12 D99CFF:22 FFDCFF:32 )],
+                       [qw( 810F8C:03 C04FCC:13 FF8EFF:23 FFCEFF:33 )],
+                       [qw( 960E59:04 D64E98:14 FF8DD8:24 FFCDFF:34 )],
+                       [qw( 951A1E:05 D45A5E:15 FF9A9E:25 FFD9DD:35 )],
+                       [qw( 7C3000:06 BC702C:16 FCB06C:26 FFEFAC:36 )],
+                       [qw( 534A00:07 938A11:17 D3CA51:27 FFFF90:37 )],
+                       [qw( 256200:08 65A113:18 A5E153:28 E4FF92:38 )],
+                       [qw( 096C00:09 49AC25:19 89EC65:29 C9FFA4:39 )],
+                       [qw( 007213:0A 2DB153:1A 6CF193:2A ACFFD2:3A )],
+                       [qw( 006A4D:0B 26AA8D:1B 66E9CD:2B A6FFFF:3B )],
+                       [qw( 005683:0C 3896C3:1C 77D6FF:2C B7FFFF:3C )],
+                       [qw( 000000:<s>0D</s> 000000:1D 333333:2D 8C8C8C:3D )],
+               ],
+               parent => 'ppu',
+               hueorder => [6..12, 1..5, 13, 0],
+       },
        shovel => {
                name => 'Shovel Knight PPU',
                table => [