Pixel-Composer/scripts/draw_sprite_fit/draw_sprite_fit.gml

4 lines
179 B
Plaintext
Raw Normal View History

2023-01-04 02:30:04 +01:00
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, w, h, 0, c_white, 1);
}