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
New Sketch
By
Aswin Asok
Run
main_frame = rectangle(h = 275, w = 275) #Center Circle center_circle = circle(r = 50) # Squares at the extremes main_sq = rectangle(x = -108, y = 108, h = 60, w = 60, stroke_width = 1) # Squares accompaning the extreme square side_sq = combine([main_sq | translate(x = 0, y = -78) , main_sq | translate(x = 78, y = 0)]) # Combining squares for the top left square_top = combine([main_sq, side_sq]) # Translating and rotating the square_top to form square_bottom(right-bottom) square_bottom = combine([main_sq | translate(x = 215, y = -215), side_sq | rotate(180) ]) # square layer for forming the left bottom curved shape left_bottom = main_sq | translate(x = 0, y = -215); # square layer for forming the right top curved shape right_top = left_bottom | rotate(180); singles = left_bottom + right_top; # ellipse to cover the "singles" square to form the curved shape ellipse_lb = ellipse(x = -130, y = 0, h = 110, w = 60, fill = "white") | rotate(45) ellipse_lbcov = ellipse(x = -129, y = 0, h = 119, w = 60,stroke = "none", fill = "white") | rotate(45) ellipses_lb = combine([ellipse_lb,ellipse_lbcov]) # rotating the covering ellipse to make the curved shape at the right top ellipses_rt = ellipses_lb | rotate(180) # combining the curved shape. curved_sides = combine([ellipses_lb , ellipses_rt]) small_curved = combine([singles, curved_sides]) | scale(0.43) | rotate(90) show(square_top, square_bottom,singles, curved_sides, small_curved, center_circle)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login