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
New Sketch
By
Ameena
Run
r=rectangle (w=300,h=300,fill="lightblue",stroke="white") r1=r|translate (x=0,y=100) show (r1) r2=rectangle (w=300,h=100,fill="white",stroke="white") r3=r2|translate (x=0,y=-100) show (r3) def big_c (x,y,r): head=circle(x=x,y=y,r=r,fill="white") return head b1=big_c(0,50,50) b2=big_c(0,-50,80) show(b2,b1) def eye(x,y): c=circle(x=x,y=y,r=5,fill="black") return c d1=eye(x=25,y=60) d2=eye(x=-25,y=60) d3=eye(x=0,y=-25) d4=eye(x=0,y=-50) d5=eye(x=0,y=-75) show (d1,d2,d3,d4,d5) p1=point(x=-45,y=75) p2=point(x=-15,y=95) p3=point(x=-45,y=120) shape=polygon([p1,p2,p3],fill="orange") show (shape) p1=point(x=-5,y=25) p2=point(x=-5,y=50) p3=point(x=15,y=45) shape=polygon([p1,p2,p3],fill="orange") show (shape) r=rectangle (w=75,h=5,fill="brown") r1=r|translate (x=80,y=-25)|rotate (30) r2=r|translate (x=-80,y=50)|rotate (60) show(r1,r2)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login