Skip to content

Commit

Permalink
make blank example actually blank
Browse files Browse the repository at this point in the history
  • Loading branch information
Redninja106 committed Feb 29, 2024
1 parent f1c645d commit be24ea0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions examples/BlankSimulation/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,12 @@

partial class Program : Simulation
{
private ITexture texture;

public override void OnInitialize()
{
texture = Graphics.CreateTexture(256, 256);
texture.GetCanvas().Clear(Color.Black);
}

public override void OnRender(ICanvas canvas)
{
canvas.Clear(Color.White);
canvas.Fill(texture);
canvas.DrawRoundedRect(new Vector2(canvas.Width / 2, canvas.Height / 2), Vector2.One * 256, 10, Alignment.Center);
}
}

0 comments on commit be24ea0

Please sign in to comment.