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
Joy Of Christmas
By
Nadim Naisam
Run
show(rectangle(x=-100,y=-100,w=101,h=101,fill="#EAECFE")) show(line(-150,-50,-150, -150) +line(-150,-150,-50, -150)) a1=point(-50,-64) a2=point(-23,-50) a3=point(70,-50) a4=point(90,-150) a5=point(50,-80) v=polygon([a1,a2, a3, a5, a4, point(-50, -150)],fill="#F1F2E6") a6=point(90,-20) a7=point(150, -20) w=polygon([a4,a5,a6,a7,point(150,-150)],fill="white") a8=point(80, -10) a9=point(80,80) a10=point(150,90) x=polygon([a7,a6,a8, a9, a10], fill="white") a11=point(7,120) a12=point(15,150) y=polygon([a10, a9, a11, a12, point(150,150)],fill="#ECFBFF") a13=point(0,90) a14=point(-100, 50) a15=point(-110,60) a16=point(-150, 70) z=polygon([a12,a13,a14,a15,a16,point(-150, 150)],fill="#FCFCFB") a17=point(-60,15) a18=point(-80,-50) zz=polygon([a16, a15, a17, a18, point(-150,-50)],fill="#FFEBEE") cc=polygon([a1, a2, a3, a6, a8, a9, a11, a13, a14, a17, a18, point(-50, -50)],fill="#FCFAFD") show(v,w,x,y,z,zz,cc) #giftbox a=rectangle(-105,-120,45,45,fill="#fec50d",stroke="#d9912b") b=rectangle(-105,-95, 50,7,fill="#fec50d",stroke="#d9912b") c=ellipse(x=-110,y=-90,w=25,h=10,stroke="#bf162c",stroke_width=4) | rotate(40) | translate(x=-70, y=55) d=ellipse(x=-110,y=-90,w=25,h=10,stroke="#bf162c",stroke_width=4) | rotate(320) | translate(x=25,y=-85) e=rectangle(-105, -120, 10,43,fill="#ec2c3b",stroke="#ee4b3a") show(a, b,c,d, e) #snowglobe f=circle(10,-110,30,fill="#d7d6e8",stroke="#6d4d2c") g=rectangle(10, -140,40,10,fill="#eb273b", stroke="#eb273b") h=circle(0,-100,3,fill="white", stroke="none")| repeat(3, translate(13, -3)) j=h|translate(x=-2,y=-13) show(f,g,h,j) #star p1=point(95, -120) p2=point(115, -70) p3=point(135, -120) p4=point(85, -90) p5=point(145, -90) k=polygon([p1, p2,p3,p4,p5], fill="#f9cb0f",stroke="#f9cb0f") show(k) #stringlights q=circle(78,-50, 7) |repeat(6,translate(x=14)) r=rectangle(111.5,-54,81,10,fill="white",stroke="none") s=circle(85, -54, 5,fill="#66cce7") |repeat(3, translate(x=28)) t=circle(100,-54,5,fill="silver")|repeat(2, translate(x=28)) show(q,r, s,t) #stripes a=line(80,75,150,85,stroke="#eb273b",stroke_width=10) b=line(80,55,150,65,stroke="#eb273b",stroke_width=10) c=line(80,35,150,45,stroke="#eb273b",stroke_width=10) d=line(80,15,150,25,stroke="#eb273b",stroke_width=10) e=line(80,-5,150,5,stroke="#eb273b",stroke_width=10) show(a, b, c, d, e) #baubles a=line(60,150,60,120)+circle(60,110,10,fill="#f79719") b=line(90,150,90,110)+circle(90,100,10,fill="#eb273b") c=line(120,150,120,115)+circle(120,105,10,fill="#afd032") show(a,b, c) #snowflakes m=circle(r=6,stroke="#6fccc7") n=line(0,6,0,20,stroke="#6fccc7")+line(-5,16,0,10,stroke="#6fccc7")+line(5,16,0,10,stroke="#6fccc7")|repeat(6, rotate(60)) o=m+n|translate(x=-130, y=120) p=o|translate(30,-40) q=o|translate(60, 10) r=o|translate(110,-10) show(o,p,q,r) #snowman a=circle(-111, -20, 20,fill="white")+circle(-114, 10, 14,fill="white") b=circle(-115,4,4)+rectangle(-115,5,10,5,fill="white",stroke="white") c=polygon([point(-116,10),point(-132,7),point(-116,6)],fill="#f8a019") d=circle(-120,12,1)+circle(-110,12,1) e=circle(-116,-15,1.6,fill="red")|repeat(3,translate(-.6,-8)) f=rectangle(-113,23,30,5,fill="black")+rectangle(-114,35,17,23,fill="black") show(a,b,c,d,e,f) #tree a=rectangle(0,-25,15,50,fill="#6d4d2c",stroke="none") b=polygon([point(-40,-40),point(40,-40),point(0,40)],fill="#069543") c=polygon([point(-35,-20),point(45,-30),point(0,45)],fill="#b2d233") d=polygon([point(-38,-10),point(43,-8),point(0,50)],fill="#069543") e=polygon([point(-28,15),point(38,10),point(0,53)],fill="#b2d233") f=polygon([point(-25,30),point(35,31),point(5,65)],fill="#069543") show(a,b,c,d,e,f) g=polygon([point(-5,60),point(5,80),point(15,60),point(-10,70),point(18,70)],fill="gold",stroke="none") show(g) def b(x,y,fill) : a=circle(x=x,y=y,r=5,fill=fill) return a u=b(-15,30,"red")+b(5,32, "lime") +b(22, 32," gold") u2=b(-10,15,"white")+b(12, 12,"turquoise") u3=b(-24,-10,"pink")+b(-7,-11,"orange") +b(13,-11,"violet") +b(30,-9, "red") show(u, u2, u3)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login