X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/305b277a4f33d11dce040fa2a9a1395000f50d27..032b7eb4897d7517e94c7fe2e1d414be8d925c9f:/termcol.plp
diff --git a/termcol.plp b/termcol.plp
index 60afba6..9262bf3 100644
--- a/termcol.plp
+++ b/termcol.plp
@@ -32,7 +32,7 @@ use Shiar_Sheet::Colour '1.03';
use List::Util qw( min max );
sub colcell {
- my $name = shift or return "
\n";
+ my $name = shift // return " | \n";
my $col = Shiar_Sheet::Colour->new(@_);
my $minhex = $col->rgb24;
my $css = '#' . $col->rgb48;
@@ -226,19 +226,6 @@ for my $term (@termlist) {
- 88-colour space
-<:
-print coltable_hsv(4,
- sub {(0, 139, 205, 255)[$_[0]]},
- [map { ($_ + 2 + ($_>0)) * 255/11 } 0 .. 7],
-);
-
-:>
-<: if ($ENV{PATH_INFO} =~ /256/) { :>
-
-
-
- 256-colour space
<:
sub coltable_hsv {
my ($dim, $rgbval, $greyramp) = @_;
@@ -297,11 +284,21 @@ sub coltable_hsv {
return $out;
}
-print coltable_hsv(6,
- sub { $_[0] && $_[0]*40 + 55 },
- [ map { $_ * 10 + 8 } 0 .. 23 ],
-);
+{
+ print "88-colour space\n";
+ print coltable_hsv(4,
+ sub {(0, 139, 205, 255)[$_[0]]},
+ [map { ($_ + 2 + ($_>0)) * 255/11 } 0 .. 7],
+ );
+}
+
+if ($ENV{PATH_INFO} =~ /256/) {
+ print "256-colour space\n";
+ print coltable_hsv(6,
+ sub { $_[0] && $_[0]*40 + 55 },
+ [ map { $_ * 10 + 8 } 0 .. 23 ],
+ );
+}
:>
-<: } :>
|