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
Afras Aboobacker P
Run
#outer layer outer_circle = circle(r=150, fill="#003049") o1 = rectangle (w=209,h=209,fill="#D62828", stroke="#D62828") | repeat (15,rotate(50)) o2 = rectangle (w=193,h=193,fill="#F77F00", stroke="#F77F00")|rotate(15) | repeat (15,rotate(50)) o3 = rectangle (w=178,h=178,fill="#FCBF49", stroke="#FCBF49")|rotate(0) | repeat (15,rotate(50)) o4 = rectangle (w=165,h=165,fill="#EAE2B7", stroke="#EAE2B7")|rotate(15) | repeat (15,rotate(50)) o5 = rectangle (w=153,h=153,fill="white", stroke="white")|rotate(0) | repeat (15,rotate(50)) show(outer_circle,o1,o2,o3,o4,o5) #middle layer middle_circle= circle(r=100, fill="darkgreen", stroke="#101820FF") show(middle_circle) def triangle(px,py,pz,color) : return polygon([px,py,pz],fill=color,stroke='none') tp1 = point(x=95,y=0) tp2 = point(x=100,y=0) tp3 = point(x=-100,y=-5) t4 = triangle(tp1,tp2,tp3,'t4 = triangle(tp1,tp2,tp3,'#290004') | repeat(8,rotate(45))
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login