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
triangles
By
Farhan
Run
r = rectangle(w=300,h=300,stroke="none",fill="white") p1 = point(70,6) p2 = point(70,-6) p3 = point(150,0) p4 = point(0,-100) p5 = point(-23,-145) p6 = point(23,-145) p7 = point(-6,-70) p8 = point(6,-70) p9 = point(0,-50) p10 = point(17,-46) p11 = point(0,0) color1 =color(r=0,b=255,g=0,a=0.5) color2 =color(r=255,b=0,g=0,a=0.5) color3 =color(r=0,b=0,g=255,a=0.5) a = polygon([p1,p3,p2],stroke="none",fill=color2) | repeat(18, rotate(20)) b = polygon([p4,p5,p6],stroke= "none",fill=color1) | repeat(18,rotate(20)) c = polygon([p4,p7,p8],stroke= "none",fill=color3) + polygon([p7,p9,p8],stroke="none",fill=color3) | repeat(18,rotate(20)) d = polygon([p9,p11,p10],stroke="none",fill=color2) | repeat(9,rotate(40)) e = circle(r=5,x=60,y=0,stroke="none",fill=color2) | repeat(9,rotate(40)) f = circle(r=5,x=-60,y=0,stroke="none",fill=color1) | repeat(100,translate(x=-40)|scale(0.5))|repeat(9,rotate(40)) g = line(-35,5,-35,-5,stroke=color3) | repeat(9,rotate(40)) show(r,a,b,c,d,e,f,g)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login