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
New Sketch
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 rings(): x=random(-150,150) y=random (-150,150) r=random(25) c1=circle(x=x,y=y,r=r,fill=random_color()) c2=circle(x=x,y=y,r=3*r/4,fill=random_color()) c3=circle(x=x,y=y,r=r/2,fill=random_color()) c4=circle(x=x,y=y,r=r/4,fill=random_color()) return c1+c2+c3+c4 for i in range(50): r=rings() show (r)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login