Urgent.News

What's breaking now, across thousands of outlets.

Tech

Why Fibonacci?

In 2015, Jim Bumgardner's video sparked inspiration for the creator to craft their first Fibonacci LED piece, which ignited an obsession. Over the years, the creator has designed numerous Fibonacci designs, reaching up to Fibonacci1024. Recently, Nick Pisarro's post on the golden angle's application in the Halo Pixel design prompted the creator to ponder how to elucidate their methods.

Every Fibonacci board they craft follows a Fermat spiral, mirroring the arrangement of sunflower seeds. This pattern differs from the Fibonacci spiral, which is drawn using squares. The creator's Fibonacci boards feature LEDs positioned according to specific rules. LED n is placed n × 137.508° from the first LED, with a distance √n away from the center. However, there are exceptions, such as Fibonacci64 Flower and Fibonacci256 Expanding.

Certain fractions of a turn yield parallel lines: 90° results in every 4th LED aligning, while 120° creates 3 spokes, and 135° forms 8. At 137°, the LEDs form arms with gaps. It takes roughly 400 LEDs for this effect to be noticeable. With 256 LEDs, the golden angle (137.5°) aligns with the set angle. The golden angle, 360° ÷ φ² ≈ 137.508°, cannot be expressed as a simple fraction, preventing LEDs from lining up precisely.

The animation displays how closely the nearest 600 LEDs are situated, as a percentage of the spacing in a perfect honeycomb. As more digits are added to the golden angle, the LEDs become increasingly distant from the ideal arrangement. The seventh digit, 137.5077641°, yields similar results to 137.507764° but on the opposite side.

The golden angle isn't the sole angle yielding optimal results; other "noble" angles, like 99.5°, also approximate it. The golden angle stands apart, being the most dissimilar to any fraction. Angles exceeding 180° mirror these, such as 222.492° (360° − 137.508°), which generates the same spiral, albeit reversed. Consequently, the golden angle may occasionally be represented as 222.5°.

With the angle established, the next consideration is the radius: the distance from the center to each LED. The animation divides the board into cells, representing areas closer to a specific LED than any other. If each step outward maintains equal size, the edge has vast space but fewer LEDs, leading to overcrowding in the middle and sparse spacing at the edge.

The largest cell is approximately 150 times larger than the smallest. By positioning LED n at a distance of √n from the center, each LED occupies an equal portion of the board, and adjacent LEDs are evenly spaced. The largest cell then measures only 1.3 times larger than the smallest. If the steps shrink faster than this, the LEDs become more spread out in the middle and densely packed at the edge. Equal area allocation ensures uniform pixel density across the board.

Square grids appear orderly at square numbers, rings only when all rings are complete, and hex grids at specific counts. The animations illustrate the potential fill spots for each layout. The Fibonacci32, Fibonacci64, Fibonacci128, Fibonacci256, Fibonacci512, and Fibonacci1024 boards employ the same layout, differing primarily in LED size and spacing.

As one examines these boards closely, spiral arms become evident. Connecting every 3rd LED results in 3 arms, while every 5th LED produces 5 arms curving in the opposite direction. Every 8th LED yields 8 arms, and so forth. Each fraction (2/5, 3/8, 5/13, 8/21…) approaches the golden angle, making the arms progressively straighter. All other counts, such as 4 or 30, cause zigzagging or wobbling across the board.

These fractions (3, 5, 8, 13, 21, and 34) form the Fibonacci sequence, which explains the boards' names. The Fibonacci numbers are obtained by adding the two preceding numbers (1, 1, 2). In nature, sunflower seed heads also exhibit Fibonacci numbers. The video showcases a genuine Fibonacci256, followed by the One Inch Fibonacci64, One Inch Fibonacci128, Fibonacci512, and Fibonacci1024 boards. All adhere to the same fundamental principles.

Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at evilgeniuslabs.org →

More in Tech

More from Wednesday 18 November →