public void New(Color foreground, Color background, int width, int height) { Reset(); int renderWidth = Math.Min(MainScreen.Instance.InnerEmptyBounds.Width, width); int renderHeight = Math.Min(MainScreen.Instance.InnerEmptyBounds.Height, height); surface = new SadConsole.Surfaces.LayeredSurface(width, height, SadConsoleEditor.Settings.Config.ScreenFont, new Rectangle(0, 0, renderWidth, renderHeight), 1); LayerMetadata.Create("Root", true, false, true, surface.ActiveLayer); var editor = new SurfaceEditor(surface); editor.FillWithRandomGarbage(); layerManagementPanel.SetLayeredSurface(surface); layerManagementPanel.IsCollapsed = true; }