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
basith1
By
Muhammed Basith
Run
c1 = circle(r=150,fill="orange",stroke_width=4) c2 = circle(r=100,fill="yellow",stroke_width=3) c3 = circle(r=50,fill="red",stroke_width=2) c4 = circle(r=10,fill="white") show(c1,c2,c3) r1 = rectangle(x=-20,y=20,w=30,h=30,fill="blue") r2 = rectangle(x=20,y=20,w=30,h=30,fill="blue") r3 = rectangle(x=20,y=-20,w=30,h=30,fill="blue") r4 = rectangle(x=-20,y=-20,w=30,h=30,fill="blue") show(r1,r2,r3,r4) #inner diamond p1=point(x=0,y=0) p2=point(x=20,y=20) p3=point(x=0,y=50) p4=point(x=-20,y=20) shape = polygon([p1, p2, p3,p4],fill="green")|repeat(4,rotate(90)) show(shape) #small trig 8 p1=point(x=0,y=50) p2=point(x=-30,y=60) p3=point(x=-35,y=35) shape = polygon([p1, p2, p3],fill="pink")|repeat(8,rotate(45)) show(shape) #big trig 8 p1=point(x=-24.5,y=60) p2=point(x=0,y=110) p3=point(x=24.5,y=60) shape = polygon([p1, p2, p3],fill="red")|repeat(8,rotate(45)) show(shape) #trig in big trig p1=point(x=-10,y=60) p2=point(x=0,y=110) p3=point(x=10,y=60) shape = polygon([p1, p2, p3],fill="blue")|repeat(8,rotate(45)) show(shape) #outer trig 8 p1=point(x=0,y=-110) p2=point(x=-55,y=-135) p3=point(x=-78,y=-78) shape = polygon([p1, p2, p3],fill="blue")|repeat(8,rotate(45)) show(shape) #inv trig 8 x1,y1=0,110 x2,y2=-60,135 x3,y3=-80,80 p1=point(x=-25,y=150) p2=point(x=0,y=110) p3=point(x=25,y=150) shape = polygon([p1, p2, p3],fill="pink")|repeat(8,rotate(45)) show(shape) #inv trig in 8 p1=point(x=-10,y=150) p2=point(x=0,y=110) p3=point(x=10,y=150) shape = polygon([p1, p2, p3],fill="green")|repeat(8,rotate(45)) show(shape) c4 = circle(r=10,fill="white") show(c4)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login