A friend of mine needs an small application which renders a 32x32 set of black rectangles. When one of these is clicked it needs to switch to a white rectangle. The image created by changing color to these boxes then would need to be exported as a png or jpg.
I was pretty sure I could do this using Canvas, but now that I have my grid working, I suddenly realize that I have absolutely no idea how to actually get the interaction to work, or if it's even possible to make it work.
Would I be able to use SVG for this task? I know Canvas has a function to export what is displayed on the canvas, but without the interaction it's pretty useless.
What's my best option? Can it actually be done?