Sei sulla pagina 1di 1

How to draw a flower in MSWLogo using Procedures

to petal repeat 90 [fd 1 rt 1] rt 90 repeat 90 [fd 1 rt 1] end

First I used a quarter of a circle to make half a petal. I turned the turtle round and repeated the quarter circle.

to flower4 setpencolor [250 60 10] petal setpencolor [200 10 30] petal setpencolor [100 30 10] petal setpencolor [50 70 80] petal rt 45 setpencolor [10 90 150] petal setpencolor [30 70 200] petal setpencolor [50 200 20] petal setpencolor [250 1 1] petal end

Then I repeated the petal changing the colour as I was going.

I then repeated the flower 3 times to make a pattern.


to flowerpattern flower4 fd 250 flower4 rt 90 fd 300 flower4 end

Martha Gough

Potrebbero piacerti anche