DGS Studio

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

Try a change

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.

Edit and generate

Generate Graph opens the studio homepage and runs this field. Open in DGS Studio loads the same text and waits for you to generate it. The equation is sent once, as a query parameter.

Related examples