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
2
Survey C
By
Aneef S
Run
p1 = point(x=-100, y=125) p2 = point(x=-110, y=-100) p3 = point(x=0, y=-140) p4 = point(x=110, y=-100) p5 = point(x=100, y=125) shape1 = polygon([p1,p2,p3,p4,p5], fill = "white") show(shape1) s = 10 p1a = point(x=-100+s, y=125-s) p2a = point(x=-85-s, y=10+s) p3a = point(x=-20+s, y=30-s) p4a = point(x=0-s, y=125-s) shape1a = polygon([p1a,p2a,p3a,p4a], stroke_width = 3,fill="#d3d4ce") show(shape1a) shape1b = shape1a | scale(x=-1) show(shape1b) p1c = point(x=-107+s, y=10-s) p2c = point(x=-110+s, y=-103+s) p3c = point(x=0-s, y=-135+s) p4c = point(x=0-s, y=10-s) shape1c = polygon([p1c,p2c,p3c,p4c], stroke_width = 3,fill="#d3d4ce") show(shape1c) shape1d = shape1c | scale(x=-1) show(shape1d) p1e = point(x=-80, y=130) p2e = point(x=-70, y=125) p3e = point(x=-40, y=100) p4e = point(x=-40, y=80) p5e = point(x=-75, y=115) shape2a = polygon([p1e,p2e,p3e,p4e,p5e], fill="#242c6a") show(shape2a) p1f = point(x=-35, y=95) p2f = point(x=-5, y=70) p3f = point(x=-10, y=57) p4f = point(x=-35, y=77) shape3a = polygon([p1f,p2f,p3f,p4f], fill="#242c6a") show(shape3a) shape4a = shape2a | repeat(8, translate(y=-25, x=-8) | scale(x=0.9) | rotate(3)) shape5a = shape3a | translate(x=-8, y=-13) | scale(x=0.6) | rotate(15) shape6a = shape5a | repeat(7, translate(x=-6, y=-25) | scale(x=0.9) | rotate(3)) show(shape4a,shape6a) p1x = point(x=-20 , y=43) p2x = point(x=7, y=65) p3x = point(x=7, y=50) p4x = point(x=-20, y=30) shapex = polygon([p1x,p2x,p3x,p4x], fill="#f3f3f1") shapey = shapex | translate(x=33, y=27) p1z = point(x=45 ,y= 95 ) p2z = point(x=70 ,y=120 ) p3z = point(x=85 ,y=130 ) p4z = point(x=75 ,y=105 ) p5z = point(x=45 ,y=80 ) shapez = polygon([p1z,p2z,p3z,p4z,p5z], fill="#f3f3f1") show(shapez) shapeyz = combine([shapey, shapez]) shapeyzf = shapeyz | repeat(8, translate(y=-25, x=2) | scale(x=0.9) | rotate(-3)) show(shapeyzf) shapexf = shapex | repeat(7, translate(y=-25, x=1) | scale(x=0.9, y=1) | rotate(-3)) show(shapexf) p1ad = point(x=-30 , y=-122 ) p2ad = point(x=-3 , y=-112 ) p3ad = point(x=-13 , y=-125 ) p4ad = point(x=-75 , y=-140 ) shapead = polygon([p1ad,p2ad,p3ad,p4ad], fill="#f3f3f1") show(shapead) p1ad2 = point(x=3, y=-125) p2ad2 = point(x=21, y=-113) p3ad2 = point(x=20, y=-123) shapead2 = polygon([p1ad2,p2ad2,p3ad2], fill="#242c6a") show(shapead2) p1ad3 = point(x=26, y=-112) p2ad3 = point(x=40, y=-103) p3ad3 = point(x=38, y=-115) p4ad3 = point(x=25, y=-120) shapead3 = polygon([p1ad3,p2ad3,p3ad3,p4ad3], fill="#242c6a") show(shapead3) p1ad4 = point(x=30, y=-122) p2ad4 = point(x=40, y=-118) p3ad4 = point(x=75, y=-140) shapead4 = polygon([p1ad4,p2ad4,p3ad4], fill="#242c6a") show(shapead4)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login