From 440357a3333f32304e21957542e50eb33eaddf21 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 13 Oct 2009 16:01:40 +0000 Subject: [PATCH] termcol: 88-colour tables (rgb cube, greyscale ramp) --- termcol.plp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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; +:>
+ -- 2.30.0