designcoding
About Table of Contents Keywords Monthly Archive
Support designcoding!

The Golden Ratio in Grasshopper

April 12, 2019 | Algorithms
#golden-ratio #grasshopper

I like to deal with possible small computational geometry problems. These fun games are taking 2-3 hours. In addition, these are also memorable exercises. I was reviewing the Anemone plugin last week. I noticed that the Golden Ratio in Grasshopper was not geometrically generated before.

Some of the greatest mathematical minds of all ages, from Pythagoras and Euclid in ancient Greece, through the medieval Italian mathematician Leonardo of Pisa and the Renaissance astronomer Johannes Kepler, to present-day scientific figures such as Oxford physicist Roger Penrose, have spent endless hours over this simple ratio and its properties. … Biologists, artists, musicians, historians, architects, psychologists, and even mystics have pondered and debated the basis of its ubiquity and appeal. In fact, it is probably fair to say that the Golden Ratio has inspired thinkers of all disciplines like no other number in the history of mathematics.

Mario Livio (via Wikipedia)

At first, it seems very easy. But this problem has kept me busy for a while. We must rotate and copy squares around changing center points. Thus, we can use this method to calculate the golden ratio, which is the ratio between the long and short edges of the rectangles generated by this procedure. I could only do this by adding a rotation pattern. Therefore, it can work with any closed polygon.

The Golden Ratio in Grasshopper golden-ratio, grasshopper
The Golden Ratio in Grasshopper Grasshopper definition

Above, I presented the construction of the Golden Ratio in Grasshopper. I tried to implement it via the repeating rotation pattern of squares. I defined an iteration number in Anemone. So the process can continue many times. This is an open definition for further development. For instance, we can draw the Golden Spiral. I checked the code in Rhino 7. I think the looping should be a standard feature of Grasshopper.

Grasshopper definition (GH)Download

Cite this post

Yazar, T. (2019, April 12). The Golden Ratio in Grasshopper. designcoding. Retrieved October 24, 2026, from https://www.designcoding.net/the-golden-ratio/

Related Posts

Icosahedron Study

May 27, 2012

I have come across several high school topics I was afraid of. While I was searching for a geodesic dome definition in Grasshopper, it was quite surprising that I found an easier way of modeling an approximation of icosahedron, the famous platonic solid. Icosahedron was a research topic of this website at various posts before (here, here, and here). In order to generate geodesic spheres, first I had to solve icosahedron. My first experiment was partially successful. I knew icosahedron’s…

Coding the Dodecahedron

March 7, 2024

Here is a method for coding the dodecahedron and all its irregular variants in Grasshopper as quickly as possible. I utilized the golden ratio rectangles, usually used to construct the sister polyhedron, the icosahedron. However, the magic component of the Grasshopper, the Faceted Dome rescued me again to generate the dual of it, the dodecahedron. This is a special platonic solid, which has 12 regular pentagonal faces. There are several techniques that I generally prefer to use in Grasshopper. You…

Fermat’s Nightmare

October 14, 2026

Revisiting a specific mathematical phenomenon that I previously explored twice, here (in 2017) and here (in 2011), from a different angle in 2026 now. This was the final video (from 2023) that I found in my junk folder during the blog’s resurrection. Today, designers mostly know Fermat through the famous 137.5-degree angle of rotation, which is the mathematical formula used to describe the arrangement of sunflower seeds. However, today I will speculate on a nightmare of Fermat’s. Because Fermat, in…

Campanus Sphere

October 9, 2026

I want to introduce a concept I came across the other day, one I had never heard of before, along with a few fantastic websites. The Campanus Sphere is essentially a rather crude spherical representation, the kind I’m used to seeing in (very old) computer games, and it also makes a nice nod to 80s disco culture. I also recall that in many older CAD software packages, spheres and sphere-related Mesh objects were represented as polyhedra using this method. However,…

Field Deformation

October 8, 2026

Ever since I restructured designcoding, I’m still sorting through the trash folder. All 580 posts published on the blog have been reviewed, and their files have been uploaded as open source. The mysterious trash folder, where I couldn’t even tell where things belonged, is shrinking fast. While checking this folder yesterday, I found a video. This is probably a simple tutorial I prepared about 10 years ago for the parametric modeling elective course (probably related to this 2012 post). The…

  • Chapters

    • Algorithms
    • Discourses
    • Fabrications
    • Studios
  • Explore

    • Table of Contents
    • Monthly Archive

    • All Keywords
    • #rhino-python
    • #polyhedra
    • #design-education
    • #pattern
    • #parametric-surface
    • #terrain
    • #tessellation
    • #kuka-prc
    • #robot
    • #sphere
    • #vector-field
    • #simulation
    • #fibonacci
    • #harmonic
    • #curvature
    • #fourier
    • #computational-geometry
    • #visualization
    • #dual
    • #parakeet
  • Search

  • Support designcoding!

  • Enjoying designcoding? Support me on Patreon to keep it growing. Thank you!

  • copyright 2026 designcoding.net | about | privacy policy | end user license agreement