License MIT license
Lines 18
Average
5.0
Rated
2
Times
5
4
3
2
1
0
Keywords
Nodebox (14) strings (3) tutorial (7) zapfino (1)
Included in this Library
Permissions
Owner: Theodore Test
Group Owner: Nodebox Community
Viewable by Everyone
Editable by All Siafoo Users
Hide
Solve a problem – Filter by language, license, keyword, owner, or search text to find code & info fast. Join Siafoo Now or Learn More

Nodebox Strings Tutorial, Randomized Zapfino Characters Atom Feed

In Brief An example from the Nodebox Strings tutorial section, showing what good times can be had by tossing a jumble of randomly selected characters onto a canvas.... more
# 's
 1#Zapfun
2
3size(400,400)
4
5fill(0.2)
6rect(0,0,WIDTH,HEIGHT)
7
8fill(1)
9stroke(0.2)
10strokewidth(1)
11font('Zapfino')
12
13for i in range(80):
14
15 fontsize(random(400))
16 rotate(random(360))
17
18 chars = 'absdefghijklmnopqrstuvwxyz'
19 p = textpath(choice(chars),
20 random(WIDTH),
21 random(HEIGHT))
22 drawpath(p)

An example from the Nodebox Strings tutorial section, showing what good times can be had by tossing a jumble of randomly selected characters onto a canvas.

Due to the stochastic component in this code, your output will most likely vary from the example shown here.

http://www.siafoo.net/image/87

Comments

about 1 year ago (14 Jan 2009 at 09:59 PM) by Stou S.
Wow this is so cool. It looks like graffiti