PDA

View Full Version : image distribution/overlapping (coverflow ish)


benshole
06-23-2008, 11:52 AM
Ok...

Its a tricky one to explain so ill do my best.
I have been slaving over AS2 and pen+paper trying to find the best algorithm to take an undefined number of images and distribute them over a horizontal space. But having one being the most prominent and on top of the others. The others being distributed to either side getting more compressed together to the far ends.

Begin Awful ASCII diagram...

12 3 4 5 6 7 8 9 10 1112
|------------------------------------------------------|


With number 8 being the active or current image. I want the active icon to vary in position relatively to its number. So if 2 were active it would be far left etc etc...

Im not worries about the AS for it, just the maths!!! I have tried using a pair of PI/2 equations to no avail, and using y=x^2 like functions but im still a bit stuck!!!

ANY ideas are very very welcome!!!

Thanks.

Ben (showing how useful an A in A-level maths really is...)

asf8
06-27-2008, 01:52 PM
image distribution/overlapping (coverflow ish)

Welcome to AS.org benshole.

Search the forum for CoverFlow.

ie:
http://www.actionscript.org/forums/showpost.php3?p=745393&postcount=3
http://www.actionscript.org/forums/showpost.php3?p=709886&postcount=5

benshole
07-03-2008, 11:42 PM
Thanks for the reply.

The overall effect i wanted wasn't exactly the same as a coverflow design. Im still struggling with it. But im sure ill find a solution.

Fortunatly other aspects of the project have become a little more important recently!

Thanks.
Ben