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
1
Kathakali
By
Vishnu VS
Run
#3D KATHAKALI #eyes and eyebrows def greenface(): face= ellipse(w=90 , h=120 , fill="#478f46" , stroke="#478f46" ) | translate(x=10 , y=-10) face1 = ellipse(w = 25 , h=50 , fill="#478f46" , stroke="#478f46" ) | rotate(-10) | translate(x=-20 , y=20) face2 = ellipse(w = 30 , h=65 , fill="#478f46" , stroke="#478f46" ) | rotate(18) | translate(x=-18 , y=-33) face3 = ellipse(w = 60 , h=75 , fill="#478f46" , stroke="#478f46" ) | rotate(-55) |translate(x=19 , y=-35) face4 = ellipse(w = 60 , h=75 , fill="#478f46" , stroke="#478f46" ) | rotate(-5) |translate(x=5 ,y=-35) return (face + face1 + face2 + face3 + face4) | rotate(-2) #eyebrow def eyebrow(): e1 = ellipse(w=35 , h=7 , fill="black") | rotate(28) | translate(x=14 , y=16) e2 = rectangle(w=12 , h=7 , fill="black") | rotate(-23) | translate(x=33 , y=19) e3 = ellipse(w=20 , h=5 , fill="black") | rotate(30) | translate(x=41 , y=20) e4 = ellipse(w=20 , h=5 , fill="black") | translate(x=10) | rotate(4) | translate(x=35 , y=15) eR = e1 + e2 + e3 + e4 eL = eR |rotate(-11) | translate(x=18 , y=2) | scale(x=-0.6 , y=1) return eR + eL def lips(): e1 = ellipse(w=16 , h=4 , fill="#b0232a" , stroke="#b0232a") | translate(y=-49) e2 = ellipse(w=30 , h=5 , fill="#b0232a" , stroke="#b0232a") | translate(y=-44) e3 = e2 |translate(y=-4) | scale(x=0.8) | rotate(10) e4 = ellipse(w=9 , h=10 , fill="#b0232a" , stroke="#b0232a") | translate(x=20 , y=-45) e5 = ellipse(w=7 , h=10 , fill="#b0232a" , stroke="#b0232a") | translate(x=-18 , y=-45) e6 = e2 | rotate(10)| translate(x=-3 , y=-4) | scale(x=-1 , y=1) l1 = line(x1=-2 , y1=-45 , x2=13 , y2=-46 , stroke="#a3020a") l1_1 = line(x1=-15 , y1=-45 , x2=10 , y2=-46 , stroke="#a3020a") l2= line(x1=5 , y1=-47 , x2=10 , y2=-47 , stroke="#a3020a") | rotate(10) lipcorr = ellipse(w=5 , h=7 , fill="#478f46" , stroke="#478f46") | translate(x=-1 , y=-39) lips = e1 + e2 + e3 + e4 + e5 + e6 + l1_1 + l1 + l2 + lipcorr return lips | translate(x=-5) #jawmask def jawmask(): #RIGHT jr1 = ellipse(w=130 , h=75 , fill="#d5e6d7" , stroke="#d5e6d7" ) | rotate(3) | translate(x=25 , y=-40) jr = (jr1) #LEFT jl1 = ellipse(w=130 , h=65 , fill="#d5e6d7" , stroke="#d5e6d7" ) | translate(x=5 , y=-45) jl = (jl1) #DARK LAYER jDark = ellipse(w=110 , h=55 , fill="#b5c9b7" , stroke="#b5c9b7" ) |translate(x=12 , y=-45) j = jl + jr + jDark return combine([j , greenface()]) #eyebrow def eyeline(): e1 = ellipse(w=40 , h=20 , fill="black" , stroke="black" ) | translate(x=20)| rotate(10) e2 = ellipse(w=40 , h=25 , fill="black" , stroke="black" ) | translate(x=33) |rotate(-10) | scale(-0.8) e3 = ellipse(w=45 , h=17 , fill="black") | rotate(25) | translate(x=30 , y=5) return (e1+e2+e3) | translate(y=-5) | scale(x=1) def eyes(): e1 = ellipse(w=20 , h=8 , fill="white" , stroke="white" ) | rotate(5) | translate(x=15 , y=-3) e2 = e1 |rotate(5) | translate(x=10 ) | scale(x=-0.9, y=0.9) eballR = ellipse(w=8 , h=10 , fill="black") | translate(x=20, y=-1) eyeR = e1 + eballR eballL = ellipse(w=8 , h=10 , fill="black") | translate(x=-19 , y=-1) return eyeR + e2 + eballL def nose(): #side e1b = ellipse(w=4, h=8, fill="black") | translate(x=1 , y=-26) e1g = ellipse(w=4 , h=8 , fill="#478f46" , stroke="#478f46") | translate(y=-25) n1s = e1b + e1g | rotate(3) n2s = n1s | translate(x=12) | scale(x=-1 , y=1) #hole h1b = ellipse(w=6, h=2, fill="black")| rotate(6) | translate(x=-2 , y=-29) wrinkle= line(x1=8 , y1=-25 , x2=15 , y2=-36 , stroke="#154707" ) nose = n1s + n2s + h1b + wrinkle return nose def kuri(): s1 = rectangle(w=25 , h=20 , fill="#f7ff03" , stroke="#f7ff03") s2 = s1 | rotate(45) | translate(y=-12) | scale(0.82) r1 = ellipse(w=6 , h=10, fill="#e3000b" , stroke="black") | translate(x=-2) kuri = s1+s2 + r1 kuri = kuri | translate(x=-2 , y=39) return kuri def earpiece(): e1 = ellipse(w=20 , h=40 , fill="yellow" , stroke="#9c3f02" )| repeat(3 , scale(0.8)) | rotate(2)| translate(x=-45) e2 = ellipse(w=30 , h=50 , fill="yellow" , stroke="#9c3f02" )| repeat(3 , scale(0.8)) | rotate(2)| translate(x=55) e3 = ellipse(w=15 , h=30 , fill="yellow" , stroke="#9c3f02" )| repeat(3 , scale(0.8)) | rotate(2)| translate(x=-45 , y=-20) e4 = ellipse(w=25 , h=40 , fill="yellow" , stroke="#9c3f02" )| repeat(3 , scale(0.8)) | rotate(2)| translate(x=55 , y=-20) return e3 + e4 + e1 + e2 def crown(): frontA = ellipse(w=100 , h=120 , fill="#e00d26" , stroke="orange" ) |rotate(-3) | translate(x=13 , y=10)| repeat(15 , scale(0.95)) frontB = ellipse(w=100 , h=120 , fill="orange" , stroke="yellow" ) |rotate(-3) | translate(x=19 , y=20) frontC = ellipse(w=100 , h=120 , fill="yellow" , stroke="orange" )|rotate(-3) | translate(x=23 , y=30)| repeat(15 , scale(0.97)) plate = ellipse(w=180, h=180 , fill="yellow" , stroke="#9c3f02" ) | translate(x=35 , y=35) | repeat(20 , scale(0.98)) plate_design = circle(r=20 , fill=color(r=240, g=197, b=5 , a=0.7) , stroke="orange") des1 = ellipse(w=6 , h=8, fill=color(r=255 , g=85 , b=0 , a=0.8) , stroke="brown")|translate(x=70)|repeat(10 , rotate(36)) | translate(x=30 , y=40) plate= plate + plate_design | scale(x=0.9) plate = plate + des1 return plate + frontC + frontB + frontA def getKadhakali(): return combine([crown(),jawmask(),eyeline() , eyebrow() , lips() , eyes(), nose() , kuri() , earpiece()]) show(getKadhakali() | translate(x=-10 , y=-15) | scale(1.3))
Comments
AC
Anand Chitipothu
3 years ago
Post
Dismiss
This is a master piece, Vishnu. Do you want to try creating some fireworks for Diwali?
This is a master piece, Vishnu. Do you want to try creating some fireworks for Diwali?
Want to discuss?
Post it here, our mentors will help you out.
Login