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
1
zen
By
Justin Eapen George
Run
def random_color(): r = random(255) g = random(255) b = random(255) a= random(1) return color(r=r, g=g, b=b, a=a) def random_circle(): x = random(-150, 150) y = random(-150, 150) r = random(50) return circle(x=x, y=y, r=r, fill=random_color(), stroke=random_color()) def random_line(): x1 = random(-150, 150) y1 = random(-150, 150) x2 = random(-150, 150) y2 = random(-150, 150) return line(x1=x1, y1=y1, x2=x2, y2=y2, stroke=random_color()) for i in range(1000): c = random_circle() d=random_line() show(c,d)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login