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
pookkalam try 3
By
Sana Thampi
Run
r1=rectangle(w=300,h=300,fill="#fff8dc") show(r1) shape=circle(x=129,y=0,r=11,fill="#adff2f")|repeat(36,rotate(10)) show(shape) def random_color(): r=random(255) g=random(0) b=random(255) return color(r=r,g=g,b=b,a=0.5) shape1=circle(x=45,y=0,r=55,fill=random_color())|repeat(6,rotate(60)) show(shape1) def dot(x,y): c=circle(x=x,y=y,r=15,fill="yellow") return c d=dot(x=0,y=0) show(d) shape2=circle(x=109,y=0,r=6,fill="#ff1493")|repeat(36,rotate(10)) show(shape2)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login