- print colcell($r*4*4 + $g*4 + $b + 16, map {(0, 139, 205, 255)[$_]} $r, $g, $b);
+ my $index = $r*4*4 + $g*4 + $b + 16;
+ print colcell($index, map {(0, 139, 205, 255)[$_]} $r, $g, $b);
+ }
+ }
+ print "</table>\n";
+}
+print "\n";
+
+print '<table><tr>';
+print colcell(80+$_, (($_ + 2 + ($_>0)) * 255/11) x 3) for 0 .. 7;
+print "</table>\n\n";
+
+:></div>
+<: if ($ENV{PATH_INFO} =~ /256/) { :>
+<hr>
+
+<div class="section">
+<h2>256-colour space</h2>
+<:
+for my $r (0 .. 5) {
+ print '<table>';
+ for my $g (0 .. 5) {
+ print '<tr>';
+ for my $b (0 .. 5) {
+ my $index = $r*6*6 + $g*6 + $b + 16;
+ print colcell($index, map { $_ && $_*40 + 55 } $r, $g, $b);