Oriel — AI & technology worth noticing, every day.

The Fibonacci Spiral Is Secretly a Straight Line

Post · https://dev.to/highflyer910/the-fibonacci-spiral-is-secretly-a-straight-line-4b4p

I folded it, unfolded it, and watched it flip to the other side. A three.js experiment, the math...

First seen by Oriel on .

AI summary

This article presents a three.js experiment showing how the conventional Fibonacci spiral can be unfolded into a straight line, then refolded into its mirror image, by rotating squares and deforming arcs into chords.

  • Each quarter-circle connects opposite corners, so its chord is a square diagonal with length equal to the square’s side multiplied by sqrt(2).
  • For nine squares sized 1, 1, 2, 3, 5, 8, 13, 21, and 34, the predicted line length is 88 * sqrt(2), approximately 124.45 units.
  • The animation uses forward kinematics to propagate hinge positions, interpolates arc points toward chord points, and rebuilds TubeGeometry on every update.
  • A fold value of 0, 1, or 2 represents the original spiral, straight configuration, or mirrored spiral, respectively.
  • The implementation is suitable for the small demo, while larger performance-sensitive scenes could update existing geometry instead of rebuilding it each frame.

#three.js #fibonacci sequence #geometry #forward kinematics

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Reactions

Total public reactions reported by the source; distinct from points and likes.

  • DEV Community: 25, latest observation ; +13 over observed period since

Comments

Comment count reported by the source.

  • DEV Community: 2, latest observation ; 0 over observed period since

Aliases

SourceExternal IDURL
DEV Community4857833https://dev.to/highflyer910/the-fibonacci-spiral-is-secretly-a-straight-line-4b4p Read discussion