-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
Is it possible to flip an image programmatically using Lutro?
eg:
function lutro.draw()
-- Draw the image normally
lutro.graphics.draw(image, x, y)
-- Flip horizontally (mirror on the X-axis)
lutro.graphics.draw(image, x + image:getWidth() * 2, y, 0, -1, 1)
-- Flip vertically (mirror on the Y-axis)
lutro.graphics.draw(image, x, y + image:getHeight() * 2, 0, 1, -1)
-- Flip both horizontally and vertically
lutro.graphics.draw(image, x + image:getWidth() * 2, y + image:getHeight() * 2, 0, -1, -1)
end
Metadata
Metadata
Assignees
Labels
No labels