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
4
Donut
By
Gayatri
Run
r=rectangle(h=300,w=300,fill="pink") def donut(x, y): c = circle(x=x, y=y, r=5) return c c2 = circle(r=150,fill="#591b04") show(r,c2) def random_color(): r = random(255) g = random(255) b = random(255) return color(r=r, g=g, b=b) def random_line(): x1 = random(-140, 140) y1 = random(-140, 140) x2 = random(-140, 140) y2 = random(-140, 140) return line(x1=x1, y1=y1, x2=x2,y2=y2,stroke=random_color()) for i in range(100): c = random_line() c1= circle(r=50,fill="#e08e4f",stroke="none") show(c,c1)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login