Pixel-Composer/scripts/draw_sprite_fit/draw_sprite_fit.gml
2023-01-09 09:14:20 +07:00

4 lines
181 B
Plaintext

function draw_sprite_fit(spr, ind, xx, yy, w, h) {
var ss = min(w / sprite_get_width(spr), h / sprite_get_height(spr));
draw_sprite_ext(spr, ind, xx, yy, ss, ss, 0, c_white, 1);
}