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
Pokkalam
By
Adhithyan.s
Run
c1= circle(r=10,fill='orange',stroke="none") c2 = circle(r=15,fill='pink',stroke="none") c3=circle(r=30,fill='red',stroke="none") c4=circle(r=35,fill='green',stroke="none") cout=circle(r=100,fill="grey",stroke="none") cin=circle(r=90,fill="yellow",stroke="#1c5911") c5=circle(r=145,fill="res") e1=ellipse(h=15,w=30,x=15,y=0,fill='violet',stroke="none") | repeat(12,rotate(36)) e2=ellipse(h=15,w=50,x=15,y=0,fill='red',stroke="none") | repeat(100,rotate(31)) e3=ellipse(h=230,w=150,y=0,stroke="none",fill="yellow") | repeat(8,rotate(45)) | rotate(45) e4=ellipse(h=260,w=15,stroke="none",fill="orange")|repeat(100,rotate(3.6)) e5=ellipse(h=290,w=25,stroke="none",fill="green")|repeat(100,rotate(3.6)) def tridesign(x,y,colors): shape=circle(stroke='none') for i in range(3): p1=point(x=-x+i*5,y=0) p2=point(x=x-i*5,y=0) p3=point(x=0,y=y-i*5) t1=polygon([p1,p2,p3],fill=colors[i]) shape+=t1 return shape t1=tridesign(40,65,['#eb3309','#e8860e','#f0ed35']) | repeat(10,rotate(36)) p1=point(x=0,y=0) p2=point(x=0,y=90) p3=point(x=25,y=87) p4=point(x=25,y=0) t2=rectangle(h=130,w=120,fill='#54032',stroke="none")|rotate(45)|repeat(10,rotate(36)) t3=rectangle(h=120,w=120,fill='#85d',stroke="none")|rotate(45)|repeat(10,rotate(36)) t4=rectangle(h=110,w=120,fill='#b885',stroke="none")|rotate(45)|repeat(10,rotate(36)) t5=rectangle(h=100,w=120,fill='#f9a4',stroke="none")|rotate(45)|repeat(10,rotate(36)) show(c5,e5,e4,e3,cout,cin,t2,t3,t4,t5,t1,e2,c4,c3,e1,c2,c1)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login