This is an experiment with canvas trying to simulate chroma key effect, but without a green screen or a key color.
It works like Apple Photobooth, it takes a photo when you press the toggle button, and then set it as the key background.
Created a 20x20 Grid and then wrote a small JavaScript code that selects all the diagonal (bottom) check boxes using a formula I wrote - Just trying to practice a bit of formula ;)