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
Mickey mouse
By
Anugeeth A
Run
# Colours BLACK = "#000000" WHITE = "#FFFFFF" FACE = "#FEE09F" TONGUE = "#ED1D29" fCircle = circle(r=68, fill= BLACK,stroke="none") # ear ear1 = circle(r=30,y=75,x=-60,fill= BLACK) ear2 = ear1 | translate(x=120) ears = combine([ear1,ear2]) # mouth (incomplete) mouthLayer1 = ellipse(w=60, h= 68,fill= BLACK ) mouthLayer2 = ellipse(w=75, h= 68, y= 15, fill= FACE, stroke="none") mouth = combine([mouthLayer1,mouthLayer2]) | translate(y=-15) # facial area (#FEE09F) ellipse1 = ellipse(h=70,w=60,x=15,y=22,fill= FACE,stroke="none") ellipse2 = ellipse1 | translate(x=-15*2) ellipse3 = ellipse(h=60,w=80,x=5,y=-30,fill= FACE,stroke="none")|rotate(25) ellipse4 = ellipse(h=60,w=80,x=-5,y=-30,fill= FACE,stroke="none")|rotate(-25) #rotate after translate gives different output facialArea = combine([ellipse1,ellipse2,ellipse3,ellipse4]) # jaw jaw = ellipse(h=68,w=68/1.2,y=-68/2,fill=FACE , stroke_width=3) faceCircle=combine([fCircle,jaw]) # nose nose = ellipse(x=0,y=-4, fill=BLACK ,h=68/3,w=68/2) # EYE eye1 = ellipse(x=-15,y=28, fill= WHITE ,h=68/2,w=68/4) eye2 = eye1 | translate(x=30) eyeball1 = ellipse(x=(15/2)*1.5,y=20, fill= BLACK ,h=(68/2)/2,w=(68/4)/2) eyeball2 = eyeball1 | translate(x = -((15/2)*1.5)*2 ) eye = combine([eye1,eye2,eyeball1,eyeball2]) show(combine([ears,faceCircle,facialArea,mouth,nose,eye]))
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login