Hi Everyone
I would like some pointers on how to approach a problem. I intend to write an android app using processing. Its for a demo, it just needs to look nice once - I am not destributing it or anything.
Here is the part that I am not sure how to approach as of yet:
I want to place multiple icons on the display.
The number of icons is not fixed and can change depending on other parameters.
The icons need to be placed randomly (or appear to be placed randomly) and should be evenly spaced.
Now comes the tricky part:
At some point, a rectangle will enter the display, reducing the size of the area which is available for the icons.
The icons should move and dynamically rearrange in order to make up for the reduced space.
*
If anyone has some suggestions on how they would approach this, I would be very thankful. I did not find any library that does what I want, though some of the wordcloud applications come close. I sort of hope that there is some library or tutorial floating around which might help me. I didnt find anything though :-/
Anyway. Any help is apreceated.
p.
1