Created
February 4, 2014 01:48
-
-
Save danott/8796080 to your computer and use it in GitHub Desktop.
Script for Industry Inc in DrawBot
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
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