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
Magic!
By
Anand Chitipothu
Run
# Inspired by the cover page of "At Right Angles, March 2017" # https://archive.azimpremjiuniversity.edu.in/SitePages/resources-at-right-angles-march-2017.aspx def beside(a, b): a1 = a | scale(x=0.5) | translate(x=-75) b1 = b | scale(x=0.5) | translate(x=75) return a1 + b1 def below(a, b): a1 = a | scale(y=0.5) | translate(y=75) b1 = b | scale(y=0.5) | translate(y=-75) return a1 + b1 def grid(shape): shape1 = shape | scale(x=-1) return below( beside(shape, shape1), beside(shape1, shape)) shape = rectangle(w=300, h=300) | repeat(100, rotate(5) | scale(0.93)) shape2 = grid(shape) show(shape2)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login