A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Math and scaling

  1. #1
    Senior Member
    Join Date
    Jul 2000

    Math and scaling

    I use the drawing api to lay two circles over a persons eyes. They "eyes" clip is scaled to 130%.

    I draw the circles and scale the eye back to 100%. I then need to scale the circle down to what I guess would be 70% (since wes drew it at 100%) and reposition it over the newly resized eye clip (restored to 100% from 130%).

    The problem for me is that when the eye clip is blown up at 130% it is no at 0x and 0y since i recentered it. And when you draw with the drawing API it starts at 0x, 0y.

    ANy help MUCH appreciated - feel fre to move this post to another forum if it is more likely to be answered there.

  2. #2
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Los Angeles
    I think you want about 77% - not 70%.

    1/1.3 = .769

    If you post your circle drawing code, I can show you how to modify it to draw the circle at any location.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center