I want to fill in a shape dynamically with random sized & random number of balls using html, css, & jQuery.
For example in the figure attached, "Figure A" is the custom shape I want to fill in when a user add a ball (Ball will actually be user pictures when he puts a comment). For example 100 users put their comment, I want to put 100 balls of random size, color in the shape of "Figure A". Figure A is currently showing a line but when I am filling it with these circles, the line won't be visible, so the shape would become from the circles.
Any idea how to achieve that ? or Any example someone has already done that before in HTML, CSS, jQuery ?
Thanks in Advance.
There are two ways I would approach the problem: