Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cascading Billboards



First off, my cocoa app is generating these images, which vary in size. Still, I'm able to use the appropriate patch to get the image dimensions, so that works.

The tricky part comes when you start at the top (say y = 0.5), and have a set of images that are 0.17, 0.34, 0.27, 0.13, 0.42 (or something similar). It's easy to figure out what the origin should be for the first few, but one of those will overlap y=0.

You're right, I should factor them out.

Raw numbers have never been my strong suit...

Thanks for your help.

-e


On Jul 21, 2006, at 3:25 pm, Alessandro Sabatelli wrote:

Hi Eric. I'm not sure i'm exactly following. If you know the heights of your billboards and you know the height of the screen then this should be fairly straightforward. If the negative coordinates are messing you up then factor them out :D Just figure out your spacing from 0..destination height and then subtract destination height/2 to shift the whole set of billboards down.
.xX


On Jul 21, 2006, at 5:49 AM, Eric Blanpied wrote:

I need to arrange a set of billboards of varying heights from the top to the bottom of the screen, with a set margin between them. I've successfully done this by doing the appropriate math to use previous heights to determine y locations, but it sometimes gets screwed up when y goed from positive to negative.

I assume this is not a new problem to me. Can anyone point to a sample that shows the best way to accomplish this task?

Thanks

-e
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (Quartzcomposer- email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/ email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >Cascading Billboards (From: Eric Blanpied <email@hidden>)
 >Re: Cascading Billboards (From: Alessandro Sabatelli <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.