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

[Test]
public void RenderManyRects()
{
    var random = Core.Randomizer.Current;
    for (int num = 0; num < 20; num++)
        new FilledRect(new Rectangle(random.Get(0.0f, 0.8f), random.Get(0.2f, 0.8f), 0.2f, 0.2f),
            Color.GetRandomColor());
}
See Also