Connecting to KinectJSON from your web app - glastonbridge/art-of-computer-science GitHub Wiki
testcanvas.html
Each frame of Kinect skeleton tracking can be polled from a webpage as is demonstrated in testcanvas.html. Go and open that page up in another tab, and look at the main javascript loop. It's very short and simple, honest! Here you can see that we are interested in a data object Skeletons which is an array of Skeleton data. The skeleton data contains an array of Joints called, unsurprisingly, "Joints." The joints all have X, Y, Z positions and a JointType. There is a list of all the possible JointTypes here. In this case, we pick out the head and colour it orange, because orange heads are cool.