[futurebasic] Re: [FB] Beginner: Proper Window Ratio

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2010 : Group Archive : Group : All Groups

From: Emmett <click@...>
Date: Thu, 4 Feb 2010 17:52:22 -0800
On Feb 4, 2010, at 2:04 PM, Max Taylor wrote:

> dim as double phi
>
> phi = (( 1 + sqr( 5 )) / 2 )/ 2 )
>
> // Then set the windows width and height to:
>
> w = system( _scrnWidth ) - someBorderAmount 	// like maybe 10 +/-
> h = w * ( 1 / phi )

Missing parenthesis on left side of phi = (((

Are you sure about the formula:
h = w * ( 1 / phi )
cause it did not look right till I adjusted like so:
h = w * ( .5 / phi )
Emmett