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
Nevin Gonsalvas
Run
c = circle(r=150,fill="green") show(c) 1 r1 = rectangle(w=200,h=35,fill="white") 2 c1 = circle(r=125,fill="yellow",stroke="crimson") 3 petal = ellipse(x=0,y=10,w=10,h=20,fill="crimson") 4 flower= petal | repeat(12,rotate(30)) 5 flower_link = flower | translate(x=30,y=30) | repeat (8,rotate(45)) 6 e1 = flower_link | repeat(3,scale(1.5)) 7 show(c1,e1) 8 9 def path(d, stroke_width=1, fill="teal", stroke="black"): return Shape("path", d=d, stroke_width=stroke_width, fill=fill, storke=stroke) 11 12 d = "M 4 8 L 10 1 L 13 0 L 12 3 L 5 9 C 6 10 6 11 7 10 C 7 11 8 12 7 12 A 1.42 1.42 0 0 1 6 13 A 5 5 0 0 0 4 10 Q 3.5 9.9 3.5 10.5 T 2 11.8 T 1.2 11 T 2.5 9.5 T 3 9 A 5 5 90 0 0 0 7 A 1.42 1.42 0 0 1 1 6 C 1 5 2 6 3 6 C 2 7 3 7 4 8 M 10 1 L 10 3 L 12 3 L 10.2 2.8 L 10 1" 13 dagger = path(d, stroke_width=1/3, fill="teal") | scale(3) | rotate(45) | translate(y=-28, x=23) 14 #show(dagger) 15 16 shape = dagger | translate(x=80) | repeat(18, rotate(20)) 17 show(shape) 18 19 20 cr1 = circle 21 cr2 = circle 22 cr3 = circle
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login