Skip to content

Instantly share code, notes, and snippets.

@danott
Created February 4, 2014 01:48
Show Gist options
  • Save danott/8796080 to your computer and use it in GitHub Desktop.
Save danott/8796080 to your computer and use it in GitHub Desktop.
Script for Industry Inc in DrawBot
textToRender = "Neato!"
fontSizeToRender = 1062
fontSize(fontSizeToRender)
width, height = textSize(textToRender)
width = width * 1.4
size(width, height)
# Centering. Needs to be fine tuned
translate(400, -150)
baseLayer = 'IndustryInc-Base'
shadowLayers = [
'IndustryInc-3D',
'IndustryInc-3DRight',
'IndustryInc-3DShadow'
]
finishingLayers = [
'IndustryInc-InlineStroke',
'IndustryInc-Outline',
'IndustryInc-BevelFill',
'IndustryInc-DetailFill',
'IndustryInc-In-N-Out'
]
def renderText(fontFamily):
fill(randint(0,1),randint(0,1),randint(0,1), random())
fontSize(fontSizeToRender)
font(fontFamily)
text(textToRender, (0, 0))
renderText(baseLayer)
for shadowLayer in shadowLayers:
renderText(shadowLayer)
renderText(finishingLayers[randint(0, len(finishingLayers) - 1)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment