FilledRectTests RenderRect 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 RenderRect()
Examples

[Test, ApproveFirstFrameScreenshot]
public void RenderRect()
{
    new FilledRect(new Rectangle(0.3f, 0.3f, 0.4f, 0.4f), Color.Blue);
}
[Test]
public void RenderRectAndLine()
{
    var drawArea = new Rectangle(0.3f, 0.3f, 0.4f, 0.4f);
    var rect = new FilledRect(drawArea, Color.Red);
    var line = new Line2D(drawArea, Color.Yellow) { RenderLayer = 1 };
    new Command(Command.Drag, position => rect.Center = line.Center = position);
}
See Also