static void Main() { Attach(SdlFactory.Instance); Colours.ChangeScheme(0, null, 16, null); window = Factory.newWindow(width: 1000, height: 900, flags: GwsWindowFlags.Resizable); //graphics.Window = window; timerPen = rg.Change(Gradient.Horizontal).newBrush(300, 300); // var w1 = Factory.newWindow(x: 500, y: 500, width: 300, height: 300); //g = Instance.GetCanvas(window.Width, window.Height); //window.Transparency = .5f; window.Paint += Window_Paint; //window.Resized += Window_Resized; window.Load += Window_Load; //draw(window.Graphics); window.KeyPress += Window_KeyPress; window.MouseDown += Window_MouseDown; //w1.MouseDown += Window_MouseDown; //w1.Paint += Window_Paint; //window.Capture = true; window.Show(); //w1.Show(); Implementation.Run(); }