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