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
Flowers and Seeds
By
Kaustubh Patil
Run
ratio = 0.315 radius = 8 translation = 8 turns_before_translation = 3 N = 100 # c = circle(r=radius, fill="#FFA03B") def nth_circle(n): times_translate = (n + (turns_before_translation-1)) // turns_before_translation color_factor = (n % turns_before_translation) + 1 r = ((color_factor * 4241) % 255) g = ((color_factor * 5801) % 255) b = ((color_factor * 7211) % 255) c = circle(r=radius, fill=f"rgb({r}, {g}, {b})") return c | translate(x = times_translate * translation) | rotate(ratio * 360 * n) for n in range(1, N+1): show(nth_circle(n)) # https://www.youtube.com/watch?v=sj8Sg8qnjOg
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login