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_1_edit
By
Aswanth S
Run
#Logo Function def tinkerhub_logo(): r1 = rectangle(w=105, h=50, fill='#2CC0CF', stroke='none', x=-45, y=70) r2 = rectangle(w=50, h=50, fill='#2078F9', stroke='none', x=50, y=70) layer1 = r1 + r2 layer2 = rectangle(w=175, h=50, fill='#FECD3D', stroke='none', x=-12, y=0) r1 = rectangle(w=70, h=50, fill='#EE3C35', stroke='none', x=-65, y=-70) r2 = rectangle(w=42, h=50, fill='#91BF23', stroke='none', x=0, y=-70) r3 = rectangle(w=42, h=50, fill='#045768', stroke='none', x=52, y=-70) layer_three = r1 + r2 + r3 return combine([layer1, layer2, layer_three]) | scale(0.08) | translate(x=1) #Triangle Function def triangle(x1,y1,x2,y2,x3,y3): p1=point(x1,y1) p2=point(x2,y2) p3=point(x3,y3) tr1=polygon([p1,p2,p3],fill="yellow") return tr1 #inner layer c1 = circle(r=13,fill="white",stroke="#3a1899",stroke_width=3 ) logo = tinkerhub_logo() inner_petals=ellipse(w=80,h=10,fill="gold")|scale(0.9)|repeat(6,rotate(30)) inner_layer=ellipse(w=50,h=20,fill="#3b158e",stroke="none")|repeat(12,rotate(30))|scale(1.8) #middle layer sq=rectangle(w=100,h=100,fill="orange",stroke="#fc9b2d")|repeat(12,rotate(30))|scale(0.9) el1=ellipse(h=160,w=65,fill="#b70603",stroke="#ff3b38")|repeat(15,rotate(45))|scale(0.96) t=triangle(0,20,100,0,0,-20) t1=t | repeat(12,rotate(30)) mid_circle=circle(r=100,fill="#097004",stroke="none",stroke_width=6) #outer layer rect1=rectangle(w=160,h=160,fill="#820a0a",stroke="#a30e0e")|repeat(20,rotate(50)) rect2=rectangle(w=180,h=180,fill="#ce0606",stroke="#e81919")|rotate(15)|repeat(20,rotate(50)) rect3=rectangle(w=200,h=200,fill="#fc9802",stroke="#fc9802")|repeat(20,rotate(50)) rect4=rectangle(w=220,h=220,fill="#fceb02",stroke="#fcfc05")|rotate(15)|repeat(20,rotate(50))|scale(0.98) #output show(rect4,rect3,rect2,rect1,mid_circle,t1,el1,sq,inner_layer,inner_petals,c1,logo)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login