The Setup
This example follows the setup from this entry.
The Execution
using Chroma;
using Chroma.Graphics;
using System.Numerics;
namespace Example
{
internal class GameCore : Game
{
protected override void Draw(RenderContext context)
{
context.Rectangle(
ShapeMode.Fill,
new Vector2(10, 10),
10,
10,
Color.White
);
context.LineThickness = 2;
context.Rectangle(
ShapeMode.Stroke,
new Vector2(40, 40),
10,
10,
Color.HotPink
);
context.LineThickness = 1;
// For more shapes explore the RenderContext class on your own.
// Did you really expect me to write all this here?
}
}
}