Sunday, July 12, 2009

Drawboting

Some months ago I wanted lo learn python programming, & I saw Drawbot, an application to learn python scripting, I had never made a graphic with scripts, it is very interesting. This is the script I did to start, it is just incredible to make this kind of things.

size(400, 400)


fill(0, 1, 0, .7) #red, green, blue and alpha channel

rect(0, 0, 400, 400)

fill(1, 1, 0, .5) #font color
font("Barricada")

for x in range(0, 400, 20) #begin from 0, width of the range and space between glyphs
for y in range(0, 400, 20)

fontsize(randint(6, 70)) #values for font size

text("a", x, y)

randomtext.py

No comments: