this may be a dumb question,so sorry in advance.
I need to distribute 2 kinds of elements in an array, like in a gradient (is the image that comes to mind).
I'll try to explain (sorry again, I don't know some terms).
I have an array of X,Y objects, I'd like to arrange them like this (array.length will be fixed)
[X,X,X,Y,X,Y,X,Y,Y,Y] - in the middle, when X is disappearing , y start to show, and I'm always sure that array[0] is always X , and array[array.lenght-1] is always Y.
How to do this ?
Sorry again if the question isn't so clear.