our $edge_lw = 5;
sub some_edge_faces (@) {
- o("$edge_lw setlinewidth 1 setlinejoin 0 setgray\n");
+ o("$edge_lw setlinewidth 1 setlinejoin ",miscpscolour('edge'),"\n");
foreach my $rr (@_) {
next if $rr->{Name} =~ m/^L2?$/;
face_path($rr);
token_circle("HS - $colour",
$hspos,
darkerpscolour($colour, 0.75),
- '0 setgray',
+ miscpscolour('edge'),
$sz,$lw);
}
sub label_faces() {
my $sz = $text_sz;
my $shadow = $sz * 0.1;
+ my $textc = miscpscolour('text');
+ my $shadowc = miscpscolour('textshadow');
o(<<END);
/wordsshow {
- 0 setgray 0 10 359 {
+ $shadowc 0 10 359 {
dup cos $shadow mul
exch sin $shadow mul
words pop pop
} bind for
- 1 setgray 0 0 words pop pop
+ $textc 0 0 words pop pop
} def
END
o(" /Helvetica-Bold findfont $sz scalefont setfont\n");
o(" newpath deck1path\n");
o(" 200 0 translate deck1path\n");
o(" } bind def");
- o(" $lw setlinewidth 1 setgray\n");
+ o(" $lw setlinewidth ",miscpscolour('playerdeck'),"\n");
o(" gsave 401 44 translate deckpairpathx stroke grestore");
o(" $lw setlinewidth ",miscpscolour('dykefail'),"\n");
o(" gsave 242 1363 translate 90 rotate deckpairpathx stroke grestore");
o(" } bind def\n");
o(" /dyke {\n");
o(" newpath dykepath\n");
- o(" gsave 0.50 setgray fill grestore\n");
- o(" gsave 0.00 setgray $lw setlinewidth stroke grestore\n");
+ o(" gsave ",miscpscolour('dykefill')," fill grestore\n");
+ o(" gsave ",miscpscolour('edge')," $lw setlinewidth stroke grestore\n");
o(" } bind def\n");
my $symbol_sz = $w * 1.50;
my $t_sz = $symbol_sz * 1.0;
o(" @t1 lineto\n");
o(" @t2 lineto closepath\n");
o(" gsave ",miscpscolour('dykeinit')," fill grestore\n");
- o(" gsave 0 setgray $lw setlinewidth stroke grestore\n");
+ o(" gsave ",miscpscolour('edge')," $lw setlinewidth stroke grestore\n");
o(" } bind def\n");
foreach my $rr (values %region) {
next if $rr->{Special};
sub play_hint () {
my $sz = 20;
- o(" gsave 0 setgray 260 1715 translate");
+ o(" gsave ",miscpscolour('hinttext')," 260 1715 translate");
o(" /Helvetica-Bold findfont $sz scalefont setfont");
my @t = split /\n/, $c{PlayHint};
foreach my $i (0..$#t) {