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
Adil V A
Run
c = circle() show(c) #Logo Function def tinkerhubo_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) #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) med_circle=circle(r=100,fill="yellow") sq=rectangle(w=100,h=100,fill="orange",stroke="none")|repeat(12,rotate(30))|scale(0.9) el1=ellipse(h=160,w=65,fill='red',stroke='red')|repeat(15,rotate(45))|scale(0.96) 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="white",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,sq2,el1,sq,inner_layer,inner_petals,c1,logo) c = circle(r=70, fill="yellow", stroke="yellow") show(c) c1 = circle(r=40, fill="red", stroke="red") p1 = point(x=50 , y=23) p2 = point(x=36 , y=19) p3 = point(x=26 , y=16) p4 = point(x=16 , y=12) p5 = point(x=11 , y=6) p6 = point(x=8 , y=-9) p7 = point(x=7 , y=-14) p8 = point(x=0 , y=-23) p9 = point(x=-8 , y=-29) p10 = point(x=-60 , y=-35) p11 = point(x=-55 , y=-41) p12 = point(x=0 , y=-40) p13 = point(x=14 , y=-35) p14 = point(x=23 , y=-25) p15 = point(x=26 , y=-14) p16 = point(x=35 , y=9) shape = polygon([p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16], fill="black") show(c1,shape)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login