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
pookalam
By
Anjali R
Run
c = circle(r=160, fill='maroon') show(c) def c(color, radius): return circle(r=radius, fill=color, stroke='none') def square(color, side): return rectangle(w=side, h=side, fill=color, stroke='none') maroon_layer = square(side=222,color='maroon') | repeat(10, rotate(10)) maroon_layer = square(side=222,color='maroon') | repeat(4, rotate(20)) orange_layer = square(side=206, color='orange') | rotate(5) | repeat(10, rotate(10)) gold_layer = square(side=192, color='gold') | repeat(10, rotate(10)) yellow_layer = square(side=192, color='yellow') | repeat(4, rotate(20)) white_layer = square(side=178, color='white') | rotate(5) | repeat(10, rotate(10)) show(maroon_layer,maroon_layer,orange_layer,gold_layer,yellow_layer, white_layer) l=line(x1=0,y1=0,x2=150,y2=0,stroke='blue') | repeat(2, rotate(2)) l1=l | repeat(8,rotate(45)) #show(l,l1) c1=c(radius=107,color='white',) show(c1) e1= ellipse(x=56,w=104,h=70,fill='maroon') e2= e1 | repeat(8, rotate(45)) show(e2) s1=rectangle(w=150,h=150 ,fill='white',stroke='none')|rotate(22.5) s2=s1|rotate(45) s3=rectangle(w=140,h=140 ,fill='red',stroke='none')|rotate(22.5) s4=s3|rotate(45) s5=rectangle(w=130,h=130 ,fill='red',stroke='none')|rotate(22.5) s6=s5|rotate(45) show(s1,s2,s3,s4,s5,s6) c2=circle(r=74,fill='maroon',stroke='none') c1=circle(r=72,fill='orange',stroke='none') show(c2,c1) l=line(x1=0,y1=0,x2=75,y2=0,stroke='blue') | repeat(30, rotate(15)) l1=l | repeat(8,rotate(45)) #show(l,l) #kathakali c1=circle(r=48,fill='black',stroke='none') c2=circle(r=45,fill='red',stroke='green',stroke_width=3) c3=circle(x=37,r=3.5,stroke_width=4,stroke='gold',fill='black') c4= c3 | repeat(20,rotate(18)) c5=circle(r=30,stroke='green',stroke_width=2) c6=circle(r=28,stroke='green',stroke_width=2) c7=circle(x=22,r=2,stroke='none',fill='white') c8= c7 | repeat(20,rotate(18)) c9=circle(r=12,stroke='gold',stroke_width=10) #show(c1,c2,c4,c5,c6,c8,c9) kathakali=combine([c1,c2,c4,c5,c6,c8,c9]) k= kathakali | translate(y=22) show(k) s1=rectangle(w=40,h=40,stroke='orange') s2=s1|rotate(45)|translate(y=25) s3=s1|translate(y=25) c1=circle(y=-30,r=25,fill='green',stroke='none') e1=ellipse(y=-40,w=90,h=45,fill='white',stroke='none') e2=ellipse(y=-43,w=70,h=30,fill='white',stroke='none') c2=circle(r=27,fill='red',stroke='none') c3=circle(r=27,stroke='yellow') c4=c3| repeat(5,translate(y=-5)) r1=rectangle(y=-20,w=50,h=15,fill='green',stroke='none') l1=line(x1=-30,y1=0,x2=30,y2=0,stroke_width=3,stroke='orange') l2=line(x1=-30,y1=-5,x2=30,y2=-5,stroke_width=6,stroke='maroon') l3=line(x1=-30,y1=-10,x2=30,y2=-10,stroke_width=3,stroke='orange') l4=line(x1=-30,y1=-15,x2=30,y2=-15,stroke_width=6,stroke='maroon') s4=rectangle(y=30,w=20,h=15,fill='orange',stroke='none') l5=line(x1=-13,y1=30,x2=13,y2=30,stroke_width=5,stroke='maroon') c5=circle(r=9,fill='gold',stroke='none') c6=circle(r=3,fill='red',stroke='none') c7=circle(x=5,r=1,fill='orange',stroke='none') c8=c7|repeat(8,rotate(45)) c9=combine([c5,c6,c8]) c10=c9|translate(x=-29,y=-24) c11=c9|translate(x=29,y=-24) r2=rectangle(y=-23,w=20,h=10,fill='red',stroke='none') l6=line(x1=3,y1=-30,x2=17,y2=-25,stroke_width=2,stroke='black') l7=line(x1=-3,y1=-30,x2=-17,y2=-25,stroke_width=2,stroke='black') l8=line(x1=3,y1=-34,x2=17,y2=-34,stroke_width=2,stroke='black') l9=line(x1=-3,y1=-34,x2=-17,y2=-34,stroke_width=2,stroke='black') l10=line(x1=-4,y1=-48,x2=4,y2=-48,stroke_width=2,stroke='red') l11=line(x1=-8,y1=-45,x2=-4,y2=-48,stroke_width=2,stroke='red') l12=line(x1=8,y1=-45,x2=4,y2=-48,stroke_width=2,stroke='red') c12=circle(x=-8,y=-45,r=2,fill='red',stroke='none') c13=circle(x=8,y=-45,r=2,fill='red',stroke='none') c14=circle(x=0,y=-25,r=2,fill='black',stroke='none') c15=circle(x=0,y=-20,r=2,fill='orange',stroke='none') show(s2,s3,s3,e1,e2,c2,c4,c1,r1,l1,l2,l3,l4,s4,l5,c10,c11,r2,l6,l7,l8,l9,l10,l11,l12,c12,c13,c14,c15)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login