How would I go about changing the color of an ellipse with hand movement? Here's what I have so far:
private void SetEllipseProperties(FrameworkElement ellipse, Joint joint)
var scaledJoint = joint.ScaleTo(640, 480, .5f, .5f);
// change position
ellipse.Fill = someColorFunction(scaledJoint.Position.Y);
but it doesn't like ellipse.Fill. It tells me "System.Windows.FrameworkElement' does not contain a definition for 'Fill' and no extension method 'Fill' accepting a first argument of type 'System.Windows.FrameworkElement' could be found (are you missing a using directive or an assembly reference?)", yet here, myEllipse.Fill is directly changed.