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
shabil
Run
def c(r,cl): return circle(r=r,stroke="none",fill=cl) c1=c(r=150,cl="#1c1711") c2=c(r=145,cl="rgb(255,103,0)") e=ellipse(w=280,h=160,fill="rgb(255,239,0)",stroke="none") |repeat(8,rotate(45)) e2=ellipse(w=265,h=145,fill="#fff",stroke="none") |repeat(8,rotate(45)) def square(color, side): return rectangle(w=side, h=side, fill=color, stroke='none') white_layer = square(side=190.5,color='#FEFDF3') | repeat(10, rotate(10)) yellow_layer = square(side=178, color='#F8E63D') | rotate(5) | repeat(10, rotate(10)) dark_yellow_layer = square(side=166, color='#E3BD36') | repeat(10, rotate(10)) orange_layer = square(side=153, color='#F36636') | rotate(5) | repeat(10, rotate(10)) red_layer = square(side=140, color='#a92822') | repeat(10, rotate(10)) sc=circle(r=27,x=100,y=0,stroke="#000",stroke_width=2)|repeat(8,rotate(45)) sci=circle(r=23,x=100,y=0,fill="#3b1b5e")|repeat(8,rotate(45)) scin=circle(r=15,x=100,y=0,stroke="none",fill="#a73d7f")|repeat(8,rotate(45)) s=square(side=200,color="#fff") show(c1,c2,e,e2,yellow_layer,dark_yellow_layer, orange_layer,red_layer ,sc,sci,scin,s)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login