# Sunflower

> Drag the slider for the angle a between seeds: at the golden angle, 137.508°, the 1000 seeds of Vogel's sunflower model fill the head evenly.

In 1979 H. Vogel gave a simple model of the seeds of a sunflower head: seed $n$ sits at the angle $n \cdot a$ and at the distance $\sqrt{n}$ from the centre. The radius $\sqrt{n}$ gives each seed the same area, because the disc of radius $\sqrt{n}$ holds $n$ seeds.

The angle that makes the head is the golden angle, $360°(1 - 1/\varphi) \approx 137.508°$, where $\varphi$ is the golden ratio. With this angle each new seed falls in the largest gap that the seeds before it leave, and the head fills evenly. This document plots the seeds as one list of points, $(r(n)\cos(n a°), r(n)\sin(n a°))$ for $n$ from 1 to $N$.

The slider for $a$ runs only from 135° to 140°, so that a small change is a visible distance on the slider: half a degree away from the golden angle, the head breaks into spiral arms with gaps between them. The slider for $N$ adds the seeds one by one, up to 1000. Edit the radius $r(n) = \sqrt{n}$ to $r(n) = n$ to get an open spiral.

- [Open the interactive version](https://graph-paper.io/showcase/en/sunflower)
- [Learn more on Wikipedia](https://en.wikipedia.org/wiki/Phyllotaxis)
