Where can i find some algorithm to position some objects in canvas in a clever way? I'm using javascript (with Raphael svg library), but examples with other languages (or pseudo-language) are welcome. Geometry isn't my strong point =)
For example have 600x800 canvas, and i want to place n objects sized 60x60 in smart ways, for example:
- an algorithm to position objects along m concentric circles with o offset.
- an algorithm to position objects along m concentric squares, but an alternate frequency (the result can be like a chessboard)
And similar examples.. i'm just looking some working examples to adapt to my case. Thank you in advance =)