Skip to content
Advertisement

Create flower of life with intersection formula in Javascript

Based on this question : Question, I tried to create a flower of life.

So far I got the 7 first petals but to create the rest of the flower (19 petals) I’m stuck because I can’t figure out what I’m doing wrong.

I’m not so good in Maths and don’t exactly understand how to proceed.

Code so far (Limited to 8 circles):

JavaScript
JavaScript
JavaScript

Result I try to achieve:

enter image description here

Advertisement

Answer

Code cleaned up 🙂

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement