GMU:Wild Type/Matthias Schäfer: Difference between revisions

From Medien Wiki
Line 38: Line 38:


== DrawBot ==  
== DrawBot ==  
<source lang="python">
size(400,400)
w = width()
h = height()
rect(0,0,w,h)
fill(255,0,0)
oval (0,0,w,h)
translate(w/2,h/2)
linearGradient(
    (0,0),
    (h/2,0),
    [(1,0,0,0.0),(0,0,1,1)],
    [0.2,1]
    )
#circling with triangles   
fill(0,0,1,0.01)
save()
for i in range(180):
    rotate(40)
    polygon((0,-w/2),(0,w/2),(h/2,0))
restore()
#TEXTEXTEXTEXT
shadow((0, 0), 100, (1, 0, 0))
font('Helvetica') #Use font that is on your Computer
fill(1)
fontSize(100)
save()
for i in range(9):
    rotate(40)
    text("{", (0,0))
restore()
</source>


[[Image:hw_ms_drawbot1.png|thumb|left|150px]]
[[Image:hw_ms_drawbot1.png|thumb|left|150px]]