Click on the switches to turn then on or off. Click space to cycle through And, Not, Or, and Xor. The bulb (the big yellow thing, as my drawing wasn't the clearest), is on when it's full of yellow, and off when it isn't. It's the output, the switches the input.
This was my own idea. I made all of the scripts and sprites. In case you don't know what a logic gate is, it is a circuit, or it could be anything, that obeys certain rules. Here is an overview. And: When both inputs are on, the output is on, but if only one or no inputs are on, it's off. Not: The output is on when when the input is not on, and of when it is on. Or: When one or two inputs are on, the output is on, however if both inputs are on, it's off. XOr: When one input is on, the output is one, but when two or no inputs are on, it's off.