Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
size(500,500)
txt="how \n to \n deal?"
path = BezierPath()
path.text((txt), font="Helvetica", fontSize=150, offset=(2, 380))
NLINES=100
def makelines(amt):
with savedState():
rotate(amt, (width()/2,height()/2))
stroke(0)
strokeWidth(3)
for i in range(NLINES+1):
position=(i*(height()/NLINES))
line((position,0), (position, width()))
makelines(90)
with savedState():
stroke()
strokeWidth(3)
fill(1)
lineHeight(10)
drawPath(path)
clipPath(path)
makelines(0)
stroke()
fill()
saveImage("cliche.png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.