-
Notifications
You must be signed in to change notification settings - Fork 1
Getting started
Jacob-Mc-kenzie edited this page Jul 12, 2020
·
1 revision
Refrence CompactGraphics.dll
Declare a graphics object, This will prepare the current Console window for Graphical supremacy.
Graphics graphics = new Graphics();
Follow the loop of draw, push, repeat.
using CompactGraphics;
static void Main(string[] args)
{
Graphics graphics = new Graphics();
//Contunually draw frames
while (true)
{
//draw the frame counter at the top of the screen.
graphics.Draw($"Fps: {graphics.Fps}", ConsoleColor.White, 0, 0);
//now that all drawing is done, push the frame to the buffer.
graphics.pushFrame();
}
}