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 3, 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…

Tensile Fabric with Kangaroo

September 25, 2026

How much work we did last year for first-year architectural education! The tensile fabric study we carried out using Grasshopper Kangaroo in “Design Computing”, a first-year course I coordinated alongside my colleague Serkan Uysal, served as a baseline for the material research addressed in the Basic Design studio at that time. Such geometric optimizations in Kangaroo are no longer surprising or novel to anyone. However, experiencing these tools and possibilities in architectural education in the very first year offers a…

Generating Harmonic Motion

September 21, 2026

While trying to program the curves produced by Spirograph toys in Grasshopper, I took a slightly different path. The topic eventually led to a broader heading: harmonic motion, and from there, to the Fourier Series we looked at previously. This simple Python code models Fourier Synthesis, driven by circles of different radii in a very straightforward way. The Python component sets up a loop that calculates the effect of each circle to the x and y values, individually. In this…

Curvature Map on Terrains

September 17, 2026

This is the last of the site analysis tools we previously used in the midterm project of first-year architecture education. As you may recall, we previously introduced a tool that generates topographies based on specific parameters. Afterward, we examined two tools that perform slope and flow analyses on these topographies. Today, we are presenting a tool that analyzes curvature. This topic actually constitutes one of the interesting intersection points between architectural design and differential geometry. Curvature is not something architects…

  • Chapters

    • Algorithms
    • Discourses
    • Fabrications
    • Studios
  • Explore

    • All Keywords
    • Table of Contents
    • Monthly Archive
    • #rhino-python
    • #polyhedra
    • #design-education
    • #robot
    • #parametric-surface
    • #terrain
    • #tessellation
    • #kuka-prc
    • #curvature
    • #fourier
    • #computational-geometry
    • #visualization
    • #dual
    • #parakeet
    • #pattern
    • #simulation
    • #vector-field
    • #growth
    • #boolean
    • #sandblasting
  • 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