Commits

Mark Heath  committed b99ca9f

better colours

  • Participants
  • Parent commits 4be4bfa

Comments (0)

Files changed (1)

File WpfWaveform/MainWindow.xaml.cs

         void MainWindow_Loaded(object sender, RoutedEventArgs e)
         {
             var generator = new WaveFormPointsGenerator();
-            var peaks = generator.GetPeaks(@"E:\Audio\Music\Coldplay\X&Y\04-Fix You.mp3", 200);
-
-            canvas.Children.Add(generator.GetBezierPath(peaks.Select(p => p.LeftMax), 0, 2, 110, -100, Brushes.Brown, Brushes.Beige));
-            canvas.Children.Add(generator.GetBezierPath(peaks.Select(p => p.LeftMin), 0, 2, 110, -100, Brushes.Brown, Brushes.Beige));
+            var peaks = generator.GetPeaks(@"E:\Audio\Music\Coldplay\X&Y\04-Fix You.mp3", 100);
+            var strokeBrush = new SolidColorBrush(Color.FromRgb(0xC1, 0xC1, 0x93));
+            canvas.Children.Add(generator.GetBezierPath(peaks.Select(p => p.LeftMax), 0, 2, 110, -100, strokeBrush, Brushes.Beige));
+            canvas.Children.Add(generator.GetBezierPath(peaks.Select(p => p.LeftMin), 0, 2, 110, -100, strokeBrush, Brushes.Beige));
         }
 
     }