six petals

By Venu GVGK

        
Comments
Anand Chitipothu
2 years ago
Post
Dismiss
Nice! Instead of creating so many circles with consecutive rotations, you could have used `repeat`. ``` s1 = circle(r=100) fill = color(r=300,g=100,b=0,a=0.3) s2 = circle (x=0,y=100, r=100, fill=fill) | repeat(6, rotate(60)) show(s1, s2) ```
Nice! Instead of creating so many circles with consecutive rotations, you could have used `repeat`. ``` s1 = circle(r=100) fill = color(r=300,g=100,b=0,a=0.3) s2 = circle (x=0,y=100, r=100, fill=fill) | repeat(6, rotate(60)) show(s1, s2) ```
Venu GVGK
2 years ago
Post
Dismiss
Yeah....I wrote this just before I learnt the repeat part.
Yeah....I wrote this just before I learnt the repeat part.
Want to discuss?
Post it here, our mentors will help you out.