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
Ajay J
Run
c4=circle(r=135,fill="green",stroke="none") show(c4) def square(color, side): return rectangle(w=side, h=side, fill=color, stroke='none') br1=square(side=135,color='green') | repeat(15, rotate(15)) br2=square(side=151.5,color='#7d1004') | rotate(22.5)|repeat(3, rotate(15)) br3=square(side=151.5,color='white') | rotate(67.5)|repeat(3, rotate(15)) br4=square(side=170,color='orange') | rotate(30)|repeat(2, rotate(15)) br5=square(side=170,color='#f4ff59') | rotate(30)|repeat(10, rotate(15)) br6=square(side=190,color='#f4ff59') | rotate(37.5)|repeat(1, rotate(15)) br7=square(side=190,color='#7d1004') | rotate(37.5)|repeat(10, rotate(15)) show(br7,br6,br5,br4,br3,br2,br1) c3=circle(r=85,fill="brown") show(c3) r1 = square(side=65,color='#7d1004') | repeat(10, rotate(30)) r2 = square(side=79,color='#ba1b09') | rotate(15)| repeat(10, rotate(30)) r3= square(side=97,color='orange') | repeat(10, rotate(30)) r4=square(side=117,color='#f4ff59') | rotate(15)| repeat(10, rotate(30)) show(r4,r3,r2,r1) c2=circle(r=36,fill="green") show(c2) e1=ellipse(w=30,h=17,x=20,y=0,stroke='#9e0808',stroke_width=3,fill="#f4ff59") | rotate(22.5) petal=e1 | repeat(9, rotate(45)) show(petal) c1=circle(r=5,fill="#9e0808",stroke="none") show(c1)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login