public static void FillA(int x1, int y1, int x2, int y2, PIXEL pixel, COLOUR colour) { Clip(x1, y1); Clip(x2, y2); for (int x = x1; x < x2; x++) { for (int y = y1; y < y2; y++) { DrawA(x, y, pixel, colour); } } }
public static void DrawToScreenBuffer(string text, int y, int x, COLOUR color) { Char[] tempArr = text.ToCharArray(0, text.Length); int i = 0; foreach (char c in tempArr) { buf[y * ScreenWidth + (x + i)].Char.AsciiChar = (byte)(int)c; buf[y * ScreenWidth + (x + i)].Attributes = (short)color; i++; } }
public static void SetAttribute(int x, int y, COLOUR colour) { buf[y * ScreenWidth + x].Attributes = (short)colour; }
public static void DrawA(int x, int y, PIXEL pixel, COLOUR colour) { buf[y * ScreenWidth + x].Char.AsciiChar = (byte)pixel; buf[y * ScreenWidth + x].Attributes = (short)colour; }