Answers for "lua drawinrect"

1

lua drawinrect

function drawinrect(img, x, y, w, h, r, ox, oy, kx, ky)
    return -- tail call for a little extra bit of efficiency
    love.graphics.draw(img, x, y, r, w / img:getWidth(), h / img:getHeight(), ox, oy, kx, ky)
end
Posted by: Guest on June-15-2021

Browse Popular Code Answers by Language