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
Repeating rectangles
By
Kaustubh Patil
Run
r1 = rectangle(h=200, w=200, fill="pink", stroke="none") r1_s = r1 | repeat(10, rotate(18)) show(r1_s) r2 = rectangle(h=175, w=175, fill="tomato", stroke="none") r2_s = r2 | rotate(9) | repeat(10, rotate(18)) show(r2_s) r3 = rectangle(h=153, w=153, fill="royalblue", stroke="none") r3_s = r3 | rotate(18) | repeat(10, rotate(18)) show(r3_s) r4 = rectangle(h=133, w=133, fill="skyblue", stroke="none") r4_s = r4 | rotate(27) | repeat(10, rotate(18)) show(r4_s) bg_circle = circle(r=70, fill="cadetblue", stroke="none") show(bg_circle) petal = ellipse(h=20, w=60, fill="cadetblue", stroke="aliceblue", stroke_width=2) petals = petal | translate(x=38) | repeat(10, rotate(36)) show(petals | repeat(16, rotate(9) | scale(0.9)))
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login