use strict;
-my $thiscolour = "1 0 1 0";
-my $spotcolour = "0 0 0 0";
-
sub chip ($$) {
my ($this, $spot) = @_; # put in a gsave
<<END;
- $thiscolour setcmykcolor
+ $this setcmykcolor
newpath
0 0 chip 0.5 mul 0 360 arc fill
- $spotcolour setcmykcolor
+ $spot setcmykcolor
newpath
0 0 spot 0.5 mul 0 360 arc fill
END
}
-print <<END or die $!;
+sub book () {
+ my $thiscolour = "1 0 1 0";
+ my $spotcolour = "0 0 0 0";
+
+ <<END;
%!
72 25.4 div dup scale
${\ chip($thiscolour, $spotcolour) }
grestore
END
+}
+print book() or die $!;