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
Lotus
By
Sree XD
Run
def draw(rad, off, fill, stroke, rotoff, count): c = circle(r=rad, x=-rad-off, y=rad+off, fill=fill, stroke=stroke) | rotate(rotoff) | repeat(count, rotate(360 / count)) r = rectangle(h=rad, w=rad, x=-1.5*rad-off, y=1.5*rad+off, fill=fill, stroke=stroke) | rotate(rotoff) | repeat(count, rotate(360 / count)) return c, r # inner bg c0 = circle(r=50, fill='#ff1f4b') # outer c1, r1 = draw(36, 20, '#fc657b', '#fc657b', 37.5, 5) c11, r11 = draw(32, 19, '#fc4e67', '#fc4e67', 37.5, 5) c12, r12 = draw(18, 36, '#fc657b', '#fc657b', 37.5, 5) # mid c2, r2 = draw(32, 11,'#ff2e57', '#ff2e57', 2, 5) c21, r21 = draw(28, 11,'#ff385f', '#ff385f', 2, 5) # inner c3, r3 = draw(24, 5, '#fc1744', '#fc1744', 37.5, 5) c31, r31 = draw(19, 5, '#fc214c', '#fc214c', 37.5, 5) # inner core c4, r4 = draw(4, 2, '#f00027', '#f00027', 110, 5) # outer ring c5, r5 = draw(4, 94, '#ff2e57', '#ff2e57', 2, 25) show(c0, c1, r1, c11, r11, c12, r12, r2, c2, r2, c21, r21, c3, r3, c31, r31, c4, r4, c5, r5)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login