NodeBox | Cornucopia

Cornucopia

Something to get you started with the Cornu library:

cornu = ximport("cornu")
 
transform(CORNER)
translate(20, 300)
scale(0.2)
font("AmericanTypewriter", 1.0)
 
path = textpath("2007", 0, 0)
 
points = []
for pt in path:
    if pt.cmd == LINETO or pt.cmd == CURVETO:
        points.append((pt.x, pt.y))
        if random() > 0.8:
            points.append((pt.x+random(-0.05,0.05), 
                           pt.y+random(-0.05,0.05)))
 
strokewidth(1)
nofill()
stroke(0)
cornu.drawpath(points)

Created by Frederik De Bleser and Lucas Nijs