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
Midhunte POKKALAM
By
Midhun Mathew
Run
#Code by Midhun Mathew ==>> https://github.com/memidhun. ground = rectangle(w=300,h=300,fill="#ebaf09", stroke="none") show(ground) def strips_1(): fig = rectangle(h=295, w=5, fill='#E3BD37', y=0, stroke='none') for i in range(4, 104) : if i % 2 == 0: fig = fig + rectangle(h=295, w=15, fill='#1C1116', y=0, stroke='none') | rotate(6) else: fig = fig + rectangle(h=295, w=15, fill='#900000', y=0, stroke='none') | rotate(6) return fig def strips_2(): fig = rectangle(h=278, w=5, fill='#E3BD37', y=0, stroke='none') for i in range(4, 104) : if i % 2 == 0: fig = fig + rectangle(h=278, w=14.5, fill='#900000', y=0, stroke='none') | rotate(6) else: fig = fig + rectangle(h=278, w=14.5, fill='#EB5400', y=0, stroke='none') | rotate(6) return fig def strips_3(): fig = rectangle(h=262, w=5, fill='#E3BD37', y=0, stroke='none') for i in range(4, 104) : if i % 2 == 0: fig = fig + rectangle(h=262, w=14.5, fill='#EB5400', y=0, stroke='none') | rotate(6) else: fig = fig + rectangle(h=262, w=14.5, fill='#E3BD36', y=0, stroke='none') | rotate(6) return fig merge_strips = combine([strips_1(), strips_2(),strips_3()]) layer_1 = merge_strips show(layer_1)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login