We draw each seed as a circle, characterised by 3 parameters:
We draw 900 seeds.
Each seed i has
The angle increment is based on the decimal part of phi, the golden ratio. The angle increment options are:
Use 1 - phi ( where phi is (1 + sqrt(5))/2 )The code here is just HTML 5 and Javascript. See also Description of how to count spirals in a sunflower head.