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
5
New sketch
By
Asvitha
Run
#randomly changing background s1=color(r=60,g=200,b=6000) def random_color(): r = random(300) g = random(300) b = random(250) return color(r=r, g=g, b=b, a=1) for i in range(200): col=color(r=random(300),g=random(300),b=random(250),a=1) show(circle(random(-150,150),random(-150,150),random(-150,150),stroke=col,fill=random_color())) c1=circle(x=0,y=56,r=68.5,fill=s1,stroke="none") show(c1) c2=ellipse(x=0,y=-45,w=115,h=180,fill=s1,stroke="none") show(c2) c19=circle(x=0,y=35,r=46,fill="white",stroke="none") show(c19) c20=circle(x=0,y=-36,r=35,fill="white",stroke="none") show(c20) c3=rectangle(x=0,y=0,w=101,h=11,fill="red",stroke="none") show(c3) c4=circle(x=-15,y=75,r=15,fill="white") show(c4) c5=circle(x=15,y=75,r=15,fill="white") show(c5) c6=circle(x=-12,y=73,r=5,fill="black",stroke="none") show(c6) c7=circle(x=12,y=73,r=5,fill="black",stroke="none") show(c7) c8=circle(x=0,y=55,r=8,fill="red",stroke="none") show(c8) c9=rectangle(x=0,y=-125,w=300,h=55,fill="black",stroke="none") show(c9) c10=ellipse(x=-30,y=-100,w=60,h=25,fill="white",stroke="none") show(c10) c11=ellipse(x=30,y=-100,w=60,h=25,fill="white",stroke="none") show(c11) c12=rectangle(x=0,y=-100,w=3,h=19,fill="black",stroke="none") show(c12) c13=ellipse(x=-75,y=12,w=81,h=25,fill=s1,stroke="none")|rotate(30) show(c13) c14=ellipse(x=75,y=12,w=81,h=25,fill=s1,stroke="none")|rotate(330) show(c14) c15=circle(x=-95,y=-40,r=14,fill="white",stroke="none") show(c15) c16=circle(x=95,y=-40,r=14,fill="white",stroke="none") show(c16) z1=line(x1=25,y1=52,x2=55,y2=57) show(z1) z2=line(x1=-25,y1=52,x2=-55,y2=57) show(z2) z3=line(x1=25,y1=42,x2=55,y2=42) show(z3) z4=line(x1=-25,y1=42,x2=-55,y2=42) show(z4) z5=line(x1=25,y1=32,x2=55,y2=27) show(z5) z6=line(x1=-25,y1=32,x2=-55,y2=27) show(z6) c23=circle(x=0,y=-8,r=10,fill="yellow",stroke="none") show(c23) c24=ellipse(x=0,y=28,w=45,h=16) show(c24) c25=rectangle(x=0,y=38,w=45,h=16,stroke="none",fill="white") show(c25) z7=line(x1=0,y1=47,x2=0,y2=20) show(z7) p=ellipse(x=0,y=-45,w=50,h=40) show(p) x=rectangle(x=0,y=-32,w=55,h=20,fill="white",stroke="none") show(x) z=line(x1=-25,y1=-41,x2=25,y2=-41) show(z) m=circle(r=2.5,fill="black")|translate(x=0,y=-8) show(m) l=line(x1=0,y1=0,x2=0,y2=10,stroke_width=1.55)|translate(y=-15) show(l)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login