FilledRectTests RenderSpinningRectangleAttachedToMouse Method Delta Engine Documentation

Namespace: DeltaEngine.Rendering2D.Shapes.Tests
Assembly: DeltaEngine.Rendering2D.Shapes.Tests (in DeltaEngine.Rendering2D.Shapes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void RenderSpinningRectangleAttachedToMouse()
Examples

[Test]
public void RenderSpinningRectangleAttachedToMouse()
{
    var rect = new FilledRect(new Rectangle(0.5f, 0.5f, 0.4f, 0.1f), Color.Blue);
    rect.Start<Spin>();
    new Command(point => rect.DrawArea = Rectangle.FromCenter(point, rect.DrawArea.Size)).Add(
        new MouseMovementTrigger());
}
See Also