Link to Canvas

A surface that you can modify & keep the contents, even when the surface should've had been lost, for GameMaker Studio 2.3+!

Join my Discord for any questions!

Example on usage:

// Create Event
surf = new Canvas(512, 512);
var width = surf.GetWidth();
var height = surf.GetHeight();
draw_rectangle_colour(32, 32, width, height, c_red, c_green, c_blue, c_yellow, false);

// Draw Event
draw_surface(surf.GetSurfaceID(), 0, 0);
  "a_string": "Hello World!",
  "a_num": 32