Proportional scaling
Jeanne A. E. DeVoto
revolution at jaedworks.com
Tue Sep 21 08:09:47 EDT 2004
At 2:46 PM -0400 9/20/2004, Simon Lord wrote:
>I have an abject on my card which can be scaled at runtime, the next
>step is to get this object to scale proportionally using it's
>current H x W as the aspect ratio when the shiftKey is down.
A quick and dirty way is to use the width as your key value. Before
scaling, store the height/width. Once the width is set, set the
height to the width times the stored ratio
--
jeanne a. e. devoto ~ revolution at jaedworks.com
http://www.jaedworks.com
More information about the metacard
mailing list