private void DrawSineWaveOnCanvas(AutomationElement canvasElement)
        {
            var bounds = canvasElement.Current.BoundingRectangle;

            var left   = (int)bounds.Left;
            int center = (int)(bounds.Y + bounds.Height / 2);

            Mouse.MoveTo(new Point(left, center));
            Mouse.Down(MouseButton.Left);

            AnimateMouseThroughPoints(GetPointsForSineWave(left, (int)bounds.Right, center));

            Mouse.Up(MouseButton.Left);
        }
        private void DrawSpirographWaveOnCanvas(AutomationElement canvasElement)
        {
            var bounds = canvasElement.Current.BoundingRectangle;

            var centerX = (int)(bounds.X + bounds.Width / 2);
            int centerY = (int)(bounds.Y + bounds.Height / 2);

            var points = GetPointsForSpirograph(centerX, centerY, 1.02, 5, 2, 0, 300);

            Mouse.MoveTo(points.First());
            Mouse.Down(MouseButton.Left);

            AnimateMouseThroughPoints(points);

            Mouse.Up(MouseButton.Left);
        }