chiark / gitweb /
wip blue
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 3 Dec 2020 17:37:42 +0000 (17:37 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 3 Dec 2020 17:37:42 +0000 (17:37 +0000)
pumpkin-books.ps.pl

index 3bf1bc9c30fe3389438ed5a3a28529bf6c382289..14b24ce7ded18ff56799a8e63c8c97a58a634abb 100755 (executable)
@@ -41,6 +41,21 @@ END
   $o;
 }
 
+sub anychip ($) {
+  my ($pips) = @_;
+  my $fsz = 10;
+  <<END;
+gsave
+  chip -0.5 mul  $fsz -0.30 mul  moveto
+  /Helvetica-Bold findfont $fsz scalefont setfont
+  (Any) dup stringwidth  3 2 roll show
+  pop pop
+  20 0 translate
+  ${\ chip(['0 0 0 0.5', '0 0 0 0'], $pips) }
+grestore
+END
+}
+
 sub ruby () { # put in gsave translate
   <<END;
   newpath
@@ -238,9 +253,11 @@ END
   $o .= $exchline->(1, 2, <<END);
   ${\ $exchip->($moth,1) }  ${\ $exslash->() }
   ${\ $exchip->($purple,1) }  ${\ $exslash->() }
+  ${\ anychip(2) }
 END
 
   $o .= $exchline->(0, 4, <<END);
+  ${\ anychip(4) }
 END
 
   $o .= exposition(<<END);