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
Code_a_Pookkalam
By
Ashitha Nair
Run
p1=polygon([point(0,150),point(-150,0),point(0,-150),point(150,0)],fill="green",stroke_width=6) c1=circle(r=75,fill="yellow",stroke_width=8) c2=circle(r=100,fill="orange",stroke_width=8) c3=circle(r=80,stroke="purple",stroke_width=8) p2=polygon([point(-50,25),point(-45,-15),point(-45,-25),point(50,-25),point(50,-15),point(-50,-15)],fill="brown") show(p1+c2+c1+p2+c3) def dot(x,y): return circle(x=x, y=y, r=5, fill="black") for i in range(-20,50,20): dot1=dot(i,0) show(dot1) x1,y1=-25,-10 x2,y2=50,-10 l1=line(x1,y1,x2,y2) show(l1) x3,y3=-15,-5 x4,y4=-25,-35 x5,y5=4,-5 x6,y6=-5,-35 x7,y7=25,-5 x8,y8=15,-35 x9,y9=45,-5 x10,y10=35,-35 l2=line(x3,y3,x4,y4) l3=line(x5,y5,x6,y6) l4=line(x7,y7,x8,y8) l5=line(x9,y9,x10,y10) show(l2,l3,l4,l5)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login