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
Rangoli
By
Sharon Sara
Run
c = circle(stroke="green",stroke_width=5,fill="orange") show(c) b = circle(r=50,fill="purple") show(b) a = circle(r=25,fill="blue") show(a) d=line(x1=100 ,y1=100,x2=100,y2=-100,stroke="magenta",stroke_width=5) e=line(x1=100 ,y1=100,x2=-100,y2=100,stroke="magenta",stroke_width=5) f=line(x1=-100 ,y1=100,x2=-100,y2=-100,stroke="magenta",stroke_width=5) g=line(x1=-100 ,y1=-100,x2=100,y2=-100,stroke="magenta",stroke_width=5) show(d,e,f,g) h=line(x1=-100,y1=0,x2=0,y2=100,stroke="red",stroke_width=5) i=line(x1=-100,y1=0,x2=0,y2=-100,stroke="red",stroke_width=5) j=line(x1=100,y1=0,x2=0,y2=100,stroke="red",stroke_width=5) k=line(x1=100,y1=0,x2=0,y2=-100,stroke="red",stroke_width=5) show(h,i,j,k) l=line(x1=-150,y1=0,x2=0,y2=150,stroke="black",stroke_width=6) m=line(x1=-150,y1=0,x2=0,y2=-150,stroke="black",stroke_width=6) n=line(x1=150,y1=0,x2=0,y2=150,stroke="black",stroke_width=6) o=line(x1=150,y1=0,x2=0,y2=-150,stroke="black",stroke_width=6) show(l,m,n,o) p=circle(r=150,stroke_width=10,stroke="red") show(p) s1 = ellipse(stroke="blue", stroke_width=3) s2 = s1 | rotate(45) s3 = s1 | rotate(90) s4 = s1 | rotate(135) show(s1, s2, s3, s4) s5 = circle(x=100, y=0, r=10,fill="yellow",stroke="yellow") s6 = s5 | rotate(45) s7 = s5 | rotate(90) s8 = s5 | rotate(135) s9 = s5| rotate(180) aa = s5 | rotate(225) bb = s5 | rotate(270) cc = s5 | rotate(315) show(s5,s6,s7,s8,s9,aa,bb,cc)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login