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
blossom
By
Jincy P Janardhanan
Run
def make_row(y, n): width = 300 d = 300/n r = d/2 xstart = -width/2 + r shapes = [] for i in range(n): x = xstart + i * d c = circle(x=x, y=y, r=r) shapes.append(c) return combine(shapes) shape = make_row(y=0, n=2) shape2 = shape | repeat(96, rotate(30) | scale(0.99)) | scale(0.5)|translate(-75) shape = make_row(y=0, n=3) shape3 = shape | repeat(96, rotate(30) | scale(0.99)) | scale(0.5)|translate(75) show(shape2, shape3)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login