I got a script that generates 100 elements and appends them to the site.
I’m using jquery to let the elements move to the left or right side but I was wondering if there would be some kind of algorithm to create a cross or a cirle out of those elements.
So you have 100 small boxes and the algorithm moves them around and formes a circle or other easy symbols.
I did some researching but I couldn’t find something usable.
Note: This is a super hacky, quickly put together solution that has a couple obvious flaws, but I’m sure that you can work those out for yourself:
Here’s what I might do (well, a little cleaner, but it would probably be along these lines):
http://jsfiddle.net/bBEau/1/