I would like to add a command to create a rectangle by area with fixed proportions (in the golden ratio). I did that little script in grasshopper, but I’d find it much more easier to have that as a command written in python. Could someone give me a hand with that?
So the main thing is to create a rectangle based on the area. A rectangle is “a * b”, because it should be in the golden ratio “b = a * 1.618”, so “A=a² * 1.618” therefore “sqrt(A/1.618) = a”.
In my example the area of the rectangle is the input, 25 sqm, based on the golden ratio the length and the width of the rectangle is 3,93/6,36.