I was fooling about with Scratch's video sensing tutorial and decided to make this.
Credits to Scratch's video sensing tutorial