git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
43f639f
)
termcol: 88-colour tables (rgb cube, greyscale ramp)
author
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 13 Oct 2009 16:01:40 +0000
(16:01 +0000)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 13 Oct 2009 22:38:42 +0000
(22:38 +0000)
termcol.plp
patch
|
blob
|
history
diff --git
a/termcol.plp
b/termcol.plp
index e313856d44c8959717878e2f64c81e2bacaffdc6..3fd9eceacf2ade51d94c0d3f532f851bb62446c1 100644
(file)
--- a/
termcol.plp
+++ b/
termcol.plp
@@
-88,3
+88,19
@@
for my $num (0 .. 15) {
}
:></table>
}
:></table>
+<h2>88-colour space</h2>
+<table>
+<:
+for my $r (0 .. 3) {
+ print '<tr>';
+ 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 '<tr>', map { colcell(80, ($_) x 3) } 46, 92, 115, 139, 162, 185, 208, 231;
+:></table>
+