What's the best way to colorize the inner area of div with random colors?
Let's say we have
<div style="width:200px; height:200px;">colorize the whole rectangle</div>
The question I asked previously Color a pixel in the div was about one pixel only. What about the all pixels?
As far as I believe there is no solution with css only. So, javascript is a perfect solution. Please no jQuery, unless it doesn't affect the performance. Performance counts.
So, the background-color:red;
is not a solution as it paints with one color only. I want to be able to choose a color for any (m,n) pixel in the div.
Thank you.