Sequences & Mathematical Patterns
Golden-Angle Phyllotaxis
Reveal the sunflower pattern one golden-angle point at a time.
phyllotaxis(500) places 500 points. Point k sits at radius proportional to √k and at angle k times the golden angle, about 137.5 degrees.
The square-root radius packs the points at a steady density. The irrational turn is why the points form spirals instead of radial spokes. A smaller count shows the same rule with fewer spirals filled in.
Equation
phyllotaxis(500)
What the pattern rule is
Pattern examples make a discrete rule visible. Phyllotaxis places points at the golden angle. Recamán's sequence draws hops that stay on the smallest available integer. The Flower of Life repeats equal circles on a triangular lattice and clips them to a window.
The interesting structure is in the arrangement, not in a single y value. Changing the count changes how much of the pattern you see. The underlying rule stays the same, which makes these good pages for predicting the next step before you generate it.
Reading the input
phyllotaxis(500)— This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
Try a change
- Edit one number in the field, then use Generate Graph. The studio opens on the homepage with the edited text and runs it.
- Use Open in DGS Studio when you want the expression loaded but not run yet.
Generate Graph posts the expression to the studio graph engine and draws the result on the homepage. The editable field is the entire input, including every line.