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
pookkalam
By
Nihalurrahiyan
Run
#colours a = "#800000" b = "#FF8C00" c = "#FFD700" d = "#FFFF00" e = "#FFFFE0" f = "#87CEEB" g = "#FF6347" g1= "#FFE4E1" g2= "#DC143C" h=color(r=170, g=147, b=214, a=0.65) #defined shapes def outer_layer(clr,n): outer_end=rectangle(x=0, y=0, h=212, w=212, fill=clr, stroke="none") | scale(n) show(outer_end | repeat (3, rotate(30))) def outer_arrow(arrow,n): show(arrow | repeat (12, rotate(30)) | scale(n)) def inner_circle(clr,n,y): outer_flower= circle(r=18.5, x=70, fill=clr, stroke_width=1.1) | repeat (12, rotate(30)) | scale(n) show(outer_flower) #outer layer,background show(circle(r=150, fill="#000000")) colors = [a,b,c,d,e,f] n=1 for i in colors: outer_layer(i,n) n=n-0.06 #outer arrow colors = [e,d,c,b,a] n=1 p1 = point(x=125, y=7.5) p2 = point(x=150, y=0) p3 = point(x=125, y=-7.5) p4= point(x=0, y=0) for i in colors: arrow= polygon([p1,p2,p3,p4], fill=i, stroke='none') outer_arrow(arrow,n) n=n-0.06 #middle layer #outermost middle layer show(circle(r=90, fill="#228B22")) colors = [g1, g, e] n=1 y=0 for i in colors: inner_circle(i,n,y) n=n-0.14 y=y+18.5 colors = [d,c,b,g2] n=1 for i in colors: circles = circle(r=54, fill=i, stroke="none") | scale(n) n=n-0.1 show(circles) show(line(x1=26.7, y1=26.7, x2=52, y2=52, stroke_width=1.5) | repeat(12, rotate(30))) show(circle(x=28, y=0, r=7, fill="#000000") | repeat(12, rotate(30)), circle(r=28, fill=f), circle(r=22, fill="#BA55D3"), circle(r=17, fill=e)) #inner layer flower=ellipse(w=24,h=12, fill=h ) | repeat(6, rotate(30)) show(flower,circle(r=6,fill="#fecc0c"))
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login