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
Magenta Riddim
By
Aswanth S
Run
def concentric_circles(x, y, r, n): # we start with drawing the outer circle first # and start moving inside, drawing circles one by one step = r/n for i in range(n): c = circle(x=x, y=y, r=r,fill="magenta") show(c) r = r-step w, h = 150, 150 r = 100 n = 20 # concentric circles at the center of the canvas #concentric_circles(0, 0, r, n) # concentric circles at each corner concentric_circles(w/2, h/2, r, n) concentric_circles(w/2, -h/2, r, n) concentric_circles(-w/2, h/2, r, n) concentric_circles(-w/2, -h/2, r, n)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login