mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-14 06:23:55 +01:00
4 lines
179 B
Plaintext
4 lines
179 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, w, h, 0, c_white, 1);
|
||
|
}
|