Skip to content

Instantly share code, notes, and snippets.

@eliheuer
Last active March 31, 2017 17:50
Show Gist options
  • Save eliheuer/d61e376f547aace28d4a3e75e5e0cd87 to your computer and use it in GitHub Desktop.
Save eliheuer/d61e376f547aace28d4a3e75e5e0cd87 to your computer and use it in GitHub Desktop.
Python Experience Fanart: http://python.madewithopinion.com/
from drawBot import *
print installedFonts()
# set the path to a font file
path = "/Users/name/drawbot/font.otf"
fontName = installFont(path)
canvas = 512
def new_page():
newPage(canvas, canvas)
fill(0)
rect(0, 0, canvas, canvas)
new_page()
fontSize(72)
font("helvetica")
tracking(0)
fill(1)
stroke(None)
text("Linux&", (128, 320))
text("Vim&", (128, 256))
text("Git&", (128, 192))
text("Python.", (128, 128))
saveImage("python-experience-fanart.gif")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment