Explore
Courses
Batches
Sketches
Statistics
Code a Pookkalam
Jobs
Devsprint
People
Course Creation
Create a Course
Guidelines
Resources
Support
Blogs
My Profile
About Us
Login
Sketches
0
sample1
By
Deepak M S
Run
def rect(l,b,col,r): r = rectangle(x=50, y=50, w=l, h=b,fill=col,stroke="white") | rotate(r) return r angle=60 c=circle(r=140,fill="orange") show(c) for i in range(6): re = rect(l=100,b=100,col="red",r=angle) show(re) angle = angle +60 c1=circle(r=100,fill="yellow") show(c1) angle = 30 for i in range(6): re = rect(l=40,b=40,col="white",r=angle) show(re) angle = angle +60 c1=circle(r=75,fill="orange") show(c1)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login