From: Mischa POSLAWSKY Date: Tue, 13 Oct 2009 16:01:40 +0000 (+0000) Subject: termcol: 88-colour tables (rgb cube, greyscale ramp) X-Git-Tag: v1.3~115 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/440357a3333f32304e21957542e50eb33eaddf21?hp=43f639f1fdbf9dd95236037d9291854559e92d92 termcol: 88-colour tables (rgb cube, greyscale ramp) --- diff --git a/termcol.plp b/termcol.plp index e313856..3fd9ece 100644 --- a/termcol.plp +++ b/termcol.plp @@ -88,3 +88,19 @@ for my $num (0 .. 15) { } :> +

88-colour space

+ +<: +for my $r (0 .. 3) { + print ''; + for my $g (0 .. 3) { + for my $b (0 .. 3) { + print colcell($r*4*4 + $g*4 + $b + 16, map {(0, 139, 205, 255)[$_]} $r, $g, $b); + } + } + print "\n"; +} +print "\n"; +print '', map { colcell(80, ($_) x 3) } 46, 92, 115, 139, 162, 185, 208, 231; +:>
+