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
Christmas
By
Joseph Jaison
Run
#background a=rectangle(w=300,h=300,fill="#FFF8DC",stroke="none") show(a) #christmas tree p1=point(x=0,y=150) p2=point(x=-50,y=50) p3=point(x=50,y=50) p4=point(x=-25,y=50) p5=point(x=25,y=50) p6=point(x=-100,y=0) p7=point(x=100,y=0) p8=point(x=-50,y=0) p9=point(x=50,y=0) p10=point(x=-200,y=-75) p11=point(x=200,y=-75) s=(polygon([p4,p2,p1,p3,p5],fill="green")|scale(0.7))+(polygon([p4,p6,p7,p5],fill="green")|scale(0.7)) s1=polygon([p7,p8,p10,p11,p9,p6],fill="green")|scale(0.5) r=rectangle(h=75,w=10,x=0,y=-74,fill="brown",stroke="none") show(s,s1,r) #gift box r=(rectangle(w=75,h=75,x=50,y=-110,fill="yellow")|translate(x=25,y=-50)|scale(0.7))+(rectangle(w=20,h=75,x=50,y=-110,fill="blue",stroke="none")|translate(x=25,y=-50)|scale(0.7))+(rectangle(w=75,h=20,x=50,y=-110,fill="blue",stroke="none")|translate(x=25,y=-50)|scale(0.7)) r1=r|rotate(270)|translate(x=60,y=-60) e=ellipse(w=25,h=10,x=50,y=-70,fill="red")|translate(x=-34,y=-29)|rotate(30) e1=e|rotate(112)|translate(x=-5,y=-165) e2=e+e1|translate(x=-105,y=0) show(r,r1,e,e1,e2) #star p1=point(x=0,y=150) p2=point(x=-10,y=130) p3=point(x=-30,y=130) p4=point(x=10,y=130) p5=point(x=30,y=130) p6=point(x=-10,y=120) p7=point(x=10,y=120) p8=point(x=-20,y=100) p9=point(x=20,y=100) p10=point(x=0,y=110) s=polygon([p1,p2,p3,p6,p8,p10,p9,p7,p5,p4],fill="#FFFF99")|scale(0.7)|translate(x=0,y=27) show(s) #balls b=circle(r=20,x=-122,y=105,fill="orange")|scale(0.3) b1=b|translate(x=73,y=0) b2=circle(r=30,x=-235,y=-32,fill="violet")|scale(0.3) b3=b2|translate(x=140,y=0) b4=circle(r=40,x=-325,y=-168,fill="#C32148")|scale(0.3) b5=b4|translate(x=195,y=0) show(b,b1,b2,b3,b4,b5)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login