-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGraphics.cs
More file actions
29 lines (25 loc) · 693 Bytes
/
Graphics.cs
File metadata and controls
29 lines (25 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
namespace OrthoGraph
{
public class Graphics
{
public GraphicsContext Context { get; }
//protected StreamWriter _output;
public Graphics(int width, int height)
{
//_output = new StreamWriter(Console.OpenStandardOutput());
Context = new GraphicsContext(width, height);
Context.Reset();
}
public void Begin()
{
Context.Reset();
Console.SetCursorPosition(0,0);
}
public void End()
{
//_output.WriteLine(Context.PixelBuffer);
//_output.Flush();
Console.WriteLine(Context.PixelBuffer);
}
}
}