Jump to content
You must now use your email address to sign in [click for more info] ×

Golden ratio math


Recommended Posts

  • Staff

I'll add it when I get chance.  I'll probably add a few of them when I do.

SerifLabs team - Affinity Developer
  • Software engineer  -  Photographer  -  Guitarist  -  Philosopher
  • iMac 27" Retina 5K (Late 2015), 4.0GHz i7, AMD Radeon R9 M395
  • MacBook (Early 2015), 1.3GHz Core M, Intel HD 5300
  • iPad Pro 10.5", 256GB
Link to comment
Share on other sites

  • Staff

Ok - easy done.  This will be in the next Beta.

 

I've added pi, phi (or gr, the golden ratio), root2 (square root of 2) and e (Eulers constant).

 

So, in the transform tab, you should be able to use something like "h * phi" (or "h * gr") in the width box to create a box with golden ratio.

SerifLabs team - Affinity Developer
  • Software engineer  -  Photographer  -  Guitarist  -  Philosopher
  • iMac 27" Retina 5K (Late 2015), 4.0GHz i7, AMD Radeon R9 M395
  • MacBook (Early 2015), 1.3GHz Core M, Intel HD 5300
  • iPad Pro 10.5", 256GB
Link to comment
Share on other sites

  • Staff

You can also use functions like Sqrt(n).

 

Currently we have:

 

Abs(n) - absolute value

IDiv(num,denom) - Whole division (integer result)

IRem(num,denom) - Remainder of whole division

Sq(n) - Square

Sqrt(n) - Square root

Sin(angle)

Cos(angle)

Tan(angle)

Min(n1,n2) - Min of two numbers

Max(n1,n2) - Max of two numbers

Mid(n1,n2) - Mid point between two numbers

Lerp(a,b,t) - Linear interpolation between two numbers

Clamp(n,min,max) - Clamp a number between two bounds

SerifLabs team - Affinity Developer
  • Software engineer  -  Photographer  -  Guitarist  -  Philosopher
  • iMac 27" Retina 5K (Late 2015), 4.0GHz i7, AMD Radeon R9 M395
  • MacBook (Early 2015), 1.3GHz Core M, Intel HD 5300
  • iPad Pro 10.5", 256GB
Link to comment
Share on other sites

  • Staff

??

 

Was there a question in there?

SerifLabs team - Affinity Developer
  • Software engineer  -  Photographer  -  Guitarist  -  Philosopher
  • iMac 27" Retina 5K (Late 2015), 4.0GHz i7, AMD Radeon R9 M395
  • MacBook (Early 2015), 1.3GHz Core M, Intel HD 5300
  • iPad Pro 10.5", 256GB
Link to comment
Share on other sites

??

 

Was there a question in there?

 

Yes, two actually. What is this algebra and do we mere mortals need it?

 

I was actually looking for the golden ratio path, as seen in DrawPlus: will this be included one day?

MacBook pro, 2.26 GHz Intel Core 2 Duo, 4 GB 1067 MHz DDR3, NVIDIA GeForce 9400M 256 MB, OS X 10.11.6

 

http://www.pinterest.com/peter2111

Link to comment
Share on other sites

  • Staff

Yes - mere mortals could very well need it.  Certainly handy in the transform tab.  You can quickly create a shape with a fixed ratio size.  You can position using multiples of a given number without having to work it out yourself.  There are lots of possibilities.

 

Crucially, using formula will also be much more accurate in some situations.

SerifLabs team - Affinity Developer
  • Software engineer  -  Photographer  -  Guitarist  -  Philosopher
  • iMac 27" Retina 5K (Late 2015), 4.0GHz i7, AMD Radeon R9 M395
  • MacBook (Early 2015), 1.3GHz Core M, Intel HD 5300
  • iPad Pro 10.5", 256GB
Link to comment
Share on other sites

  • 1 month later...
  • 6 years later...
On 12/16/2014 at 11:39 AM, Ben said:

Ok - easy done.  This will be in the next Beta.

 

I've added pi, phi (or gr, the golden ratio), root2 (square root of 2) and e (Eulers constant).

 

So, in the transform tab, you should be able to use something like "h * phi" (or "h * gr") in the width box to create a box with golden ratio.

I just found this function and I am thrilled I can calculate with „h“ – but I am doing something wrong, calculating with „b“ does not seem to work here, does it? Would make just as much sense, wouldn’t it? 

Link to comment
Share on other sites

42 minutes ago, Olaf Welling said:

calculating with „b“ does not seem to work here

If you want to refer to the breadth you need to call it “width” (for which the abbreviation is w).

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

4 minutes ago, Olaf Welling said:

Maybe it should be considered to adopt these to the programme’s interface language

That would work for German (Höhe/Breite) and French (hauteur/largeur) but it wouldn’t work for Spanish (altura/anchura).

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

Just now, Alfred said:

That would work for German (Höhe/Breite) and French (hauteur/largeur) but it wouldn’t work for Spanish (altura/anchura).

But probably the abbreviations to name the two fields in transformation panel are different in Spanish, too, aren’t they? Though I admit, there may be a language where (one of) the abbreviated field names is the same as one of the units or calculation formulas mentioned above. Sigh, I dismiss. 😬 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.