|
fill(value)
fill(red, green, blue)
fill(red, green, blue, alpha)
fill(None)
|
stroke(value)
stroke(red, green, blue)
stroke(red, green, blue, alpha)
stroke(None)
strokeWidth(value)
|
for i in range(50):
rect(i*10, i*10, 10+i, 10+i)
oval(i*10, 0, 10, 10+i*2)
oval(0, i*10, 10+i*2, 10)
fill(None)
stroke(1, 0, 0)
newpath()
moveto(100, 100)
lineto(200, 100)
lineto(200, 200)
curveto(175, 230, 125, 230, 100, 200)
closepath()
drawpath()
for i in range(50):
fill(random(), random(), random())
oval(i*10, 10, 10*i, 10*i)
for i in range(50):
fill(random(), random(), random())
rect(10, 10*i, 10*i, 10*i)
translate(300, 300)
for i in range(0, 360, 10):
save()
rotate(i)
fill(.7, i/360., 1)
rect(100, 0, 10, 10)
restore()
translate(300, 300)
font("Garamond")
fontSize(30)
for i in range(0, 360, 30):
save()
rotate(i)
image("http://tinyurl.com/y7wnxb5", 100, 0)
fill(random(), random(), 1)
oval(100-10, -10, 20, 20)
text("hello world", 120, -10)
restore()
TinyPy is a proof of concept: scripting with native python in a webbrowser, yeaha.
Based on DrawBot. The app that made me understand python :).
Cannot save it as PNG cause you image(...) was to large :(
You can always make a screenshot.