protected override void BeforeRun() { var vga = new VGAScreen(); vga.SetGraphicsMode(VGAScreen.ScreenSize.Size320x200, VGAScreen.ColorDepth.BitDepth8); screen = new Screen(vga); canvas = new Canvas(screen); canvas.Clear(); mouse.Initialize(); var ml = canvas.CreateLayer(); mouseLayer = canvas.GetLayer(ml); //mouseLayer.DrawLine(0, 0, 200, 200, Colour.LimeGreen); //canvas.Redraw(); }
/// <summary> /// Initializes a new instance of the Canvas class. /// </summary> public Canvas(Screen screen) { this.screen = screen; }