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
New Sketch
By
Alakananda
Run
def kiridam(xDis, yDis, scale) : p1=ellipse(w=30*scale,h=15*scale,x=10-xDis,y=10-yDis,fill="#FBDE47",stroke="none") p2=ellipse(w=20*scale,h=15*scale,x=10-xDis,y=20-yDis,fill="#FBDE47",stroke="none") p3=ellipse(w=10*scale,h=10*scale,x=10-xDis,y=30-yDis,fill="#FBDE47",stroke="none") p4=ellipse(w=25*scale,h=15*scale,x=12-xDis,y=10-yDis,fill="#f2be00",stroke="none") p5=ellipse(w=15*scale,h=15*scale,x=12-xDis,y=20-yDis,fill="#f2be00",stroke="none") p6=ellipse(w=5*scale,h=10*scale,x=12-xDis,y=30-yDis,fill="#f2be00",stroke="none") p7=ellipse(w=40*scale,h=20*scale,x=10-xDis,y=5-yDis,fill="#FBDE47",stroke="none") p8 = ellipse(w=20,h=50,y=60, fill = "#FBDE47",stroke = "none") p=p8+p7+p1+p2+p3+p6+p5+p4 show(p) #outer design def backgroundCircle() : bg=rectangle(w=259,h=400,fill="#FFFFFF",stroke="none")|rotate(15)|repeat(20,rotate(50))|scale(0.98) outergreen=rectangle(w=250,h=180,fill="#008000",stroke="none")|rotate(15)|repeat(20,rotate(50))|scale(0.98) lg=rectangle(w=250,h=160,fill="#00FF00",stroke="none")|rotate(15)|repeat(20,rotate(50))|scale(0.98) show(bg,outergreen,lg) backgroundCircle() golden=circle(x=0,y=0,r=135,fill="#FFD700",stroke="#DF9739") orange=circle(x=0,y=0,r=120,fill="#FF4500",stroke="#DF9739") show(golden,orange) smallViolet=circle(x=127,y=0,r=5,fill='#8B008B', stroke = "none")|repeat(20,rotate(30)) rose=circle(x=0,y=0,r=100,fill="#FFE4E1",stroke="#DF9739") show(smallViolet,rose) orange2=circle(x=0,y=0,r=80,fill="red",stroke="#FF4500",stroke_width = 4) red=circle(x=0,y=0,r=60,fill="red",stroke="#DF9739") show(orange2) crownouter=circle(r=100,y=25,fill="red") crowninner=circle(r=80,y=25,fill="#00FF00") crowninner2=circle(r=50,y=25,fill="white") crowninner3=circle(r=35,y=25,fill="orange") chin=ellipse(w=150,h=60,x=0,y=-70,fill="white") chin2=ellipse(w=130,h=40,x=0,y=-70,fill="white") chin3=ellipse(w=110,h=20,x=0,y=-70,fill="white") face=ellipse(w=80,h=110,fill="#00FFFF",y=-40,stroke="none") redellipse=ellipse(w=80,h=60,y=-30,fill="#E74530",stroke="none") greenellipse=ellipse(w=80,h=50,y=-40,fill="#00FF00",stroke="none") pottpoints=[point(x=0,y=-30),point(x=-25,y=-17.5),point(x=0,y=-22.5),point(x=25,y=-17.5)] pott=polygon(pottpoints,fill="#F6E358",stroke="none") fillred=polygon([point(x=-25,y=-17.5),point(x=0,y=-22.5),point(x=25,y=-17.5),point(x=0,y=-5)],fill="red",stroke="none") eyebro=ellipse(w=7,h=30,fill="black") eyebro1=eyebro| rotate(65) |translate(y=-30,x=-17) eyebro2=eyebro| rotate(-65) |translate(y=-30,x=17) fillbro1=polygon([point(y=-35,x=-39),point(y=-25,x=-31),point(y=-30,x=-25)],fill="black") fillbro2=polygon([point(y=-35,x=39),point(y=-25,x=31),point(y=-30,x=25)],fill="black") eyelashbase=(ellipse(w=30,h=10,fill="black") + ellipse(w=18,h=7,fill="white") +circle(r=3,fill="black",stroke="none") ) | translate(x=-20,y=-45) eyelashbase2=(ellipse(w=30,h=10,fill="black") + ellipse(w=18,h=7,fill="white") +circle(r=3,fill="black",stroke="none") ) | translate(x=20,y=-45) show(crownouter,crowninner,crowninner2,crowninner3,chin,chin2,chin3,face) kiridam(10,-10,3) show(redellipse,greenellipse,pott,fillred,eyebro1,eyebro2,fillbro1,fillbro2,eyelashbase,eyelashbase2)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login