public void TestBeginning() { var tween = new GTween(_target, TweenDuration, _values); tween.Beginning(); Assert.AreEqual(true, tween.Paused); Assert.AreEqual(0, tween.Position); }
private void easerFunctions_SelectedIndexChanged(object sender, EventArgs e) { using (var gfx = Graphics.FromImage(_bitmap)) { gfx.FillRectangle(Brushes.Black, 0, 0, _bitmap.Width, _bitmap.Height); } _plotFrom.X = _plotAt.X = 0; _plotFrom.Y = _plotAt.Y = 140; _xTween.Beginning(); _yTween.Beginning(); _xTween.Paused = false; _yTween.Paused = false; _yTween.Ease = easerFunctions.SelectedItem as GTween.Easer; }