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
3
Eleves
By
M. Uvaiz Sha
Run
#backround bg= rectangle(w=300,h=300, fill='white') show(bg) #hands hl1= point(x=-35, y=12) hl2= point(x=-75, y=-40) hl3= point(x=-60, y= -40) hl4= point(x=-25, y=0) leftHand = polygon([hl1,hl2,hl3,hl4], stroke_width=4, fill='#12b000') hr1= point(x=35, y=12) hr2= point(x=75, y=-40) hr3= point(x=60, y= -40) hr4= point(x=25, y=0) rightHand = polygon([hr1,hr2,hr3,hr4], stroke_width=4,fill='#12b000') gl1= circle(x=-69, y=-44,r=10, fill='white', stroke_width=4) gl2= circle(x=69, y=-44,r=10, fill='white', stroke_width=4) show(leftHand, rightHand, gl1, gl2) #leg legl = rectangle(x=-25, y= -100, w=20, h= 70, stroke_width= 4, fill='red') des1 = rectangle(x=-25, y= -95, w=16, h= 10, stroke= 'none', fill='white') des2 = rectangle(x=-25, y= -120, w=16, h= 10, stroke= 'none', fill='white') legR = rectangle(x=25, y= -100, w=20, h= 70, stroke_width= 4, fill='red') des3 = rectangle(x=25, y= -95, w=16, h= 10, stroke= 'none', fill='white') des4 = rectangle(x=25, y= -120, w=16, h= 10, stroke= 'none', fill='white') shoeR= circle( x=25, y= -140, r=10, stroke_width= 4, fill='white') shoel= circle( x=-25, y= -140, r=10, stroke_width= 4, fill='white') show(legl, des1, des2,legR, des3, des4, shoeR,shoel) #shirt rec1= rectangle(x=0, y= 5, w=75, h=15,fill='red', stroke_width=4) rec2= rectangle(x=0, y=-39, w=75, h=70,fill='#12b000', stroke_width=4 ) rec3= rectangle(x=0, y= -68, w=75, h=12.5,fill='brown', stroke_width=4) rec4= rectangle(x=0, y= -68, w=20, h=12.5,stroke='gold', stroke_width=4) cir1= circle(x=0, y= -20, r=8, stroke='gold', stroke_width=4, fill='white') cir2= circle(x=0, y= -45, r=8, stroke='gold', stroke_width=4, fill='white') show(rec1, rec2, rec3, rec4, cir1, cir2) #face nr1= point(50,65) nr2= point(34,50) nr3= point(34,35) earR=polygon([nr1,nr2,nr3],fill="#f5dbac", stroke_width=2) nl1= point(-50,65) nl2= point(-34,50) nl3= point(-34,35) earl=polygon([nl1,nl2,nl3],fill="#f5dbac", stroke_width=2) elvesFaceC = circle(x=0, y=50, r=35, fill="#f5dbac", stroke_width=4, ) eye1 = ellipse(x=-15, y=50, w=20, h=10,fill='white', stroke_width=2) eye2 = ellipse(x=15, y=50, w=20, h=10,fill='white', stroke_width=2) pupil1= circle(x=15.5, y=50, r=4, fill='black') pupil2= circle(x=-15.5, y=50, r=4, fill='black') mouth= ellipse(x=0, y=30, w=30, h=10,fill='white', stroke_width=2) show(earR, earl, elvesFaceC,eye1, eye2, pupil1, pupil2, mouth, ) #cap capR= rectangle(x=0, y=77.5, w=70, h=12.5,fill='red', stroke_width=4,) p1=point(x=0,y=125) p2=point(x=-32,y=87.5) p3=point(x=32,y=87.5) capT= polygon([p1,p2,p3],fill='#12b000',stroke_width=4) capC= circle(x=0, y=125, r=10,fill='red', stroke_width=2) show(capR,capT, capC)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login