Last active
March 31, 2017 17:50
-
-
Save eliheuer/d61e376f547aace28d4a3e75e5e0cd87 to your computer and use it in GitHub Desktop.
Python Experience Fanart: http://python.madewithopinion.com/
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
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