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
Lollypops
By
Yamini rayini
Run
bg=rectangle(0,0,300,300,fill="white") show(bg) def random_color(): r=random(255) b=random(255) g=random(255) return color(r,b,g,a=0.5) def random_circles(): x=random(-150,150) y=random(-150,150) r=10 c1=circle(x=x,y=y,r=r,fill=random_color()) c2=circle(x=x,y=y,r=r/2,fill=random_color()) z=line(x1=x,y1=y-r,x2=x,y2=y-(r+20)) return (c1+c2+z) for i in range(100): lp=random_circles() show(lp)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login