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
Its Christmas!!
By
Gopika Chandran A J
Run
r=rectangle(x=0,y=0,h=300,w=300,fill="black") show(r) x1,y1=0,100 x2,y2=0,150 z1=line(x1,y1,x2,y2,stroke_width=2,stroke="#808080") show(z1) x5,y5=-100,0 x6,y6=-100,150 z3=line(x5,y5,x6,y6,stroke_width=2,stroke="#808080") show(z3) x7,y7=-69,69 x8,y8=-69,150 z4=line(x7,y7,x8,y8,stroke_width=2,stroke="#808080") show(z4) x9,y9=69,69 x10,y10=69,150 z5=line(x9,y9,x10,y10,stroke_width=2,stroke="#808080") show(z5) c1=circle(x=-100,y=0,r=15,fill ="blue",stroke_width=3,stroke="navy") c2=circle(x=0,y=100,r=15,fill ="blue",stroke_width=3,stroke="navy") c3 = circle(x=69,y=69, r=15,fill ="red",stroke_width=3,stroke="yellow") c4 = circle(x=-69, y=69, r=15,fill ="red",stroke_width=3,stroke="yellow") show(c1, c2,c3,c4) r1=rectangle(x=100,y=-100,h=100,w=10,fill="#964B00",stroke="black") show(r1) r2=rectangle(x=50,y=-150,h=100,w=10,fill="#964B00",stroke="black") show(r2) p1=point(x=100,y=50) p2=point(x=50,y=-10) p3=point(x=150,y=-10) shape1=polygon([p1,p2,p3],fill="#228B22", stroke="none") show(shape1) p4=point(x=100,y=20) p5=point(x=40,y=-50) p6=point(x=160,y=-50) shape2=polygon([p4,p5,p6],fill="#228B22", stroke="none") show(shape2) p7=point(x=100,y=0) p8=point(x=30,y=-100) p9=point(x=170,y=-100) shape3=polygon([p7,p8,p9],fill="#228B22", stroke="none") show(shape3) p10=point(x=50,y=-20) p11=point(x=0,y=-75) p12=point(x=100,y=-75) shape4=polygon([p10,p11,p12],fill="#006400", stroke="none") show(shape4) q1=point(x=50,y=-50) q2=point(x=-20,y=-120) q3=point(x=120,y=-120) shape5=polygon([q1,q2,q3],fill="#006400", stroke="none") show(shape5) x3,y3=100,0 x4,y4=100,150 z2=line(x3,y3,x4,y4,stroke_width=2,stroke="#808080") show(z2) c5 = circle(x=100,y=0, r=15,fill ="blue",stroke_width=3,stroke="navy") show(c5) c6=circle(r=7,x=60,y=-15,fill="#FFD700") c7=circle(r=7,x=140,y=-15,fill="#FF4500") c8=circle(r=7,x=0,y=-125,fill="#FFD700") c9=circle(r=7,x=10,y=-80,fill="#FF4500") c10=circle(r=7,x=90,y=-80,fill="#FFD700") c11=circle(r=7,x=100,y=-125,fill="#FF4500") show(c6,c7,c8,c9,c10,c11) s1 = ellipse(w=55,h=80,stroke="white",stroke_width="2") s2 = s1 | rotate(45) s3 = s1 | rotate(90) s4 = s1 | rotate(135) show(s1, s2, s3, s4) r5=rectangle(x=-100,y=-100,h=75,w=75,fill="#C71585") show(r5) x11,y11=-100,-62 x12,y12=-100,-135 z6=line(x11,y11,x12,y12,stroke_width=6,stroke="#8B0000") show(z6) x11,y11=-100,-62 x12,y12=-100,-135 z6=line(x11,y11,x12,y12,stroke_width=6,stroke="#8B0000") show(z6) r3=rectangle(x=-100,y=-100,h=50,w=50,fill="#483D8B") r4 = r3 | rotate(15) show(r4) x13,y13=-100,-75 x14,y14=-100,-125 z6=line(x13,y13,x14,y14,stroke_width=6,stroke="#8B0000") shape=line(x13,y13,x14,y14,stroke_width=6,stroke="navy") | rotate(15) show(shape) q4=point(x=-100,y=-62) q5=point(x=-120,y=-45) q6=point(x=-105,y=-40) shape6=polygon([q4,q5,q6],fill="#8B0000", stroke="none") show(shape6) q7=point(x=-100,y=-62) q8=point(x=-80,y=-45) q9=point(x=-95,y=-40) shape7=polygon([q7,q8,q9],fill="#8B0000", stroke="none") show(shape7) c13=circle(r=6,x=-85,y=-95,fill="#C71585",stroke="navy",stroke_width="4") show(c13) c14=circle(r=6,x=-75,y=-92,fill="#C71585",stroke="navy",stroke_width="4") show(c14) c15 = circle(r=3,x=35,y=0,fill="red") c16 = c15 | rotate(45) c17 = c15 | rotate(90) c18 = c15 | rotate(135) c19 = c15 | rotate(180) c20 = c15 | rotate(270) c21 = c15 | rotate(360) c22 = c15 | rotate(225) c23 = c15 | rotate(315) show(c15, c16, c17, c18,c19,c20,c21,c22,c23)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login