Created
August 9, 2014 08:53
-
-
Save pjt33/c24507d183723c7690e4 to your computer and use it in GitHub Desktop.
Cairo pentagonal grid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%!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