surf = surface_create(512, 256) surface_set_target(surf) draw_clear(c_white) surface_reset_target()