What you are looking for can be a possible candidate for
Intel's RealSense[
^] technology. This can read the gestures that you provide, and function as you guide it to.
I am not sure whether you would find such a great article right now, but wait a for a while to get the article. Or instead, you can get the tool kit (
SDK) and get started by reading the
developer documentations from Intel[
^] itself. I am sure the SDK would be easy and you will be able to get it started (
by applying just a little common sense).
Reminded by Wes Aday
I forgot
Kinect technology by Microsoft[
^], which has been in the market for a while and is widely in use. You can surely use Kinect and program the applications as per your need.
This article would get you started,
Kinect – Getting Started – Become The Incredible Hulk[
^] or go through the resources for
Kinect tag on CodeProject[
^].