Skip to content

Instantly share code, notes, and snippets.

@samf
Created December 2, 2018 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samf/6272e3f86645a335e10e3da50d66de07 to your computer and use it in GitHub Desktop.
Save samf/6272e3f86645a335e10e3da50d66de07 to your computer and use it in GitHub Desktop.
draw a rectangle to use as a guide for putting sugru bumpers on a box
%!
% Print a rectangle of the right size for putting blobs of sugru
% to make non-slip feet on top of the power cord box for our
% pairing station.
initgraphics
% The box is 6.125 inches wide, and much longer. Make it a golden
% ratio rectangle.
/height 6.125 2 sub 72 mul def
/width height 1.61803 mul def
newpath
100 100 moveto
0 height rlineto
width 0 rlineto
0 height -1 mul rlineto
closepath
stroke
showpage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment