Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
Change the stage color if beyond 2.5m
Browse files Browse the repository at this point in the history
  • Loading branch information
ahollenbach committed Oct 30, 2014
1 parent 364dac3 commit 7411f82
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,11 @@ private void Reader_FrameArrived(object sender, BodyFrameArrivedEventArgs e)

// If we detect either a trigger to start or stop the track, change the background color
SolidColorBrush color;
if (spineMidPos.Z > 2.5)
{
color = Brushes.DarkBlue;
}
// let the triggers overwrite if necessary
if (triggerStart || triggerEnd)
{
color = Brushes.LightGray;
Expand Down

0 comments on commit 7411f82

Please sign in to comment.