Cairo pentagonal grid
%!PS-Adobe-2.0 | |
%%Creator: Peter Taylor | |
% Force A4 portrait. | |
<</PageSize [595 842]>> setpagedevice | |
/hex { | |
currentpoint | |
8 14 rlineto | |
6 0 rlineto | |
8 -14 rlineto | |
-8 -14 rlineto | |
-6 0 rlineto | |
-8 14 rlineto | |
4 7 rmoveto | |
7 -4 rlineto | |
7 4 rlineto | |
-7 -4 rmoveto | |
0 -6 rlineto | |
7 -4 rlineto | |
-7 4 rmoveto | |
-7 -4 rlineto | |
moveto | |
} bind def | |
/row { | |
currentpoint | |
12 { | |
hex | |
28 0 rmoveto | |
} repeat | |
moveto | |
} bind def | |
-14 842 moveto | |
4 4 scale | |
0.25 setlinewidth % compensate for the scale | |
16 { | |
row | |
14 -14 rmoveto | |
row | |
-14 -14 rmoveto | |
} repeat | |
stroke | |
showpage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment