#!/usr/bin/perl $t=1; $r=0; $c=0; print "\n"; foreach $v1 (0x00,0x33,0x66,0x99,0xcc,0xff) { $h1=sprintf("%02x",$v1); if($t) { print ""; $r++; } $t=1-$t; } print "
"; } else { print ""; } print "\n"; print ""; print "" unless $c; print "\n"; unless($r) { print ""; print "" unless $c; foreach $v2 (0x00,0x33,0x66,0x99,0xcc,0xff) { $h2=sprintf("%02x",$v2); print ""; } print "\n"; } foreach $v2 (0x00,0x33,0x66,0x99,0xcc,0xff) { $h2=sprintf("%02x",$v2); print ""; print "" unless $c; foreach $v3 (0x00,0x33,0x66,0x99,0xcc,0xff) { $h3=sprintf("%02x",$v3); $f="#".($v1<102?'ff':'00').($v3<102?'ff':'00').($v2<102?'ff':'00'); print ""; } print "\n"; } print "
 R=$h1
 G=$h2
B=$h2
#$h1$h3$h2\nR=$v1\nG=$v3\nB=$v2
\n"; $c=1-$c; if($t) { print "
"; } else { print "
\n";