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
Adithya Shaji E
Run
#Logo Function def tinkerhub_logo(): r1 = rectangle(w=105, h=50, fill='white', stroke='none', x=-45, y=70) r2 = rectangle(w=50, h=50, fill='blue', stroke='none', x=50, y=70) layer1 = r1 + r2 layer2 = rectangle(w=175, h=50, fill='black', 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) #inner layer c1 = circle(r=13,fill="white",stroke="#3a1899",stroke_width=10 ) logo = tinkerhub_logo() inner_petals=ellipse(w=80,h=10,fill="gold")|scale(0.9)|repeat(6,rotate(60)) inner_layer=ellipse(w=50,h=20,fill="#blue",stroke="none")|repeat(12,rotate(30))|scale(1.8) med_circle=circle(r=100,fill="yellow") sq=rectangle(w=100,h=100,fill="orange",stroke="none")|repeat(12,rotate(30))|scale(0.9) sq2=rectangle(w=105,h=90,fill="#fff205",stroke="none")|repeat(36,rotate(10))|scale(1.2) mid_circle=circle(r=94,fill="#097004",stroke="yellow",stroke_width=6) #outer layer rect1=rectangle(w=160,h=160,fill="blue",stroke="white")|repeat(20,rotate(50)) rect2=rectangle(w=180,h=180,fill="yellow",stroke="orange")|rotate(15)|repeat(20,rotate(50)) rect3=rectangle(w=200,h=200,fill="red",stroke="#black")|repeat(20,rotate(50)) #output show(rect3,rect2,rect1,mid_circle,sq2,sq,inner_layer,inner_petals,c1,logo)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login