my $purple = ["1 0 0.8", "0 0 0"];
my $lotus = ["0.6 0.7 .5", "0.5 0.5 0"];
+my $anychip = ['0.5', '0'];
+
sub colour ($) {
my ($c) = @_;
if ($c =~ m/[^ 0-9.]/) {
(Any) dup stringwidth 3 2 roll show
pop pop
20 0 translate
- ${\ chip(['.5 .5 .5', '0 0 0'], $pips) }
+ ${\ chip($anychip, $pips) }
grestore
END
}
rubysz 0 lineto
0 rubysz lineto
closepath
- 1 0.5 0.5 setrgbcolor gsave fill grestore
+ ${\ colour('1 0.5 0.5') } gsave fill grestore
$black 1 setlinewidth stroke
END
}
gsave
0.83 0.25 dc translate
0.85 dup scale
- ${\ chip(['.5 .5 .5', ''], 0) }
+ ${\ chip($anychip, 0) }
grestore
gsave