[BNM] aspect ratio guide
Ali
ali at nubz.com
Wed Oct 29 18:27:43 GMT 2008
Wow thanks alex makes my answer seem kindergarten--and rightly, my solution
is making for a few problems in my flash app - got to determine the size of
a wall by how many cards there are to be hung on it and I am hacking it to
death - I'll have a go at translating your answer into actionscript.
Why did i ditch maths age 17? Need it now more than ever!
Cheers,
Ali
-----Original Message-----
From: bnmlist-bounces at brightonnewmedia.org
[mailto:bnmlist-bounces at brightonnewmedia.org] On Behalf Of Alex Farran
Sent: 29 October 2008 18:10
To: Brighton New Media
Subject: Re: [BNM] aspect ratio guide
Ooh! simultaneous equations.
(1) w/h = 16/9
(2) w*h = x
(2) /h -> (3) w = x/h
subst (3) for w in (1) -> (4) x/h^2 = 16/9
(4) * h^2 -> (5) x = 16/9 * h^2
(5) -> (6) h = sqrt(x * 9/16)
let x = 144
h = sqrt(144 * 9/16) = sqrt(81) = 9
w = h * (16/19) = 16
let x = 1200
h = 25.98
w = 48.187
Rounding up or down is left as an exercise for the reader.
On Wed, Oct 29, 2008 at 5:41 PM, Ali <ali at nubz.com> wrote:
> Hi
>
>
>
> This might be easy for someone -for me it's breaking my head....
>
>
>
> I have an unknown quantity of boxes and wish to group them into an aspect
> ratio - in this case 16:9
>
>
>
> So if I have 144 boxes I know my rectangle will be 16 boxes across and 9
> boxes high
>
>
>
> What if I have 1200 boxes or 312 boxes?
>
>
>
> If anyone can point me to a formula for this I would be most grateful!
>
>
>
> Cheers,
>
>
>
> Ali
>
> --
>
> BNM Subscribe/Unsubscribe:
> http://www.brightonnewmedia.org/options/bnmlist
>
> BNM powered by Wessex Networks:
> http://www.wessexnetworks.com
>
--
Alex Farran Web Development
http://www.alexfarran.com 01273 474065
--
BNM Subscribe/Unsubscribe:
http://www.brightonnewmedia.org/options/bnmlist
BNM powered by Wessex Networks:
http://www.wessexnetworks.com
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.8.4/1753 - Release Date: 28/10/2008
21:20
More information about the BNMlist
mailing list. Powered by Wessex Networks