Available since LÖVE 11.0
This function is not supported in earlier versions.
Applies the given Transform object to the current coordinate transformation.
This effectively multiplies the existing coordinate transformation's matrix with the Transform object's internal matrix to produce the new coordinate transformation.
love.graphics.applyTransform( transform )
Transform transformNothing.
local transform = love.math.newTransform()
transform:translate(200, 0)
function love.draw()
love.graphics.translate(100, 100)
love.graphics.rectangle("fill", 0, 0, 50, 50)
love.graphics.applyTransform(transform)
love.graphics.rectangle("fill", 0, 0, 50, 50)
end
© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.graphics.applyTransform