termcol: reorder all incompatible palettes to ansi
[sheet.git] / termcol.plp
index f2a0f8545688518a6ccb7a4dcb68bcd995487630..1e5e2870cea46240c538919fe1416bf0222c6680 100644 (file)
@@ -16,6 +16,16 @@ Html({
 :>
 <h1>Terminal colours</h1>
 
+<p>
+<span title="ECMA-48">ANSI</span> (VT100, ISO-6429) 16-colour text palette
+as implemented by various systems and programs.
+<:
+print
+       !exists $get{v} ? 'Also see <a href="?v">8-bit legacy hardware</a> palettes.' :
+       'Also included are 8-bit legacy hardware palettes.';
+:>
+</p>
+
 <div class="section">
 <:
 use Shiar_Sheet::Colour '1.01';
@@ -183,6 +193,11 @@ my %col = (
 if ($get{v}) {
        my %reorder = (
                arnegame => [ 0,5,9,12 , 3,6,10,13,1 , 4,7,8,11,14,15,2 ],
+               arnegame => [ 0,3,10,6,12,9,13,1 , 5,7,11,8,14,4,15,2 ],
+               c64 => [ 0,2,5,9,6,4,3,15 , 11,10,13,7,14,8,12,1 ],
+               msx2 => [ 0,6,2,10,4,13,7,14 , 1,8,3,11,5,9,12,15 ],
+               risc => [ 7,11,13,14,8,12,15,1, 6,5,10,9,4,3,2,0],
+               mac2 => [ 15,3,9,11,6,5,7,12 , 14,2,8,1,13,4,10,0 ],
        );
        $reorder{$_} = $reorder{msx2} for qw( msx1 arnejmp );
        while (my ($name, $order) = each %reorder) {