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...)
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...)