Search found 3 matches
- Mon Oct 26, 2020 2:51 pm
- Forum: Support and Development
- Topic: Confused with the descriptions of transformPoint and inverseTransformPoint
- Replies: 1
- Views: 3428
Confused with the descriptions of transformPoint and inverseTransformPoint
I'm looking for definitions of global / local coordinates and screen-space in the love wiki. These are the descriptions from the wiki. love.graphics.transformPoint Converts the given 2D position from global coordinates into screen-space. global->screen love.graphics.inverseTransformPoint Converts th...
- Sun Oct 04, 2020 2:12 pm
- Forum: Support and Development
- Topic: How to move a part of a canvas
- Replies: 4
- Views: 3960
- Sat Oct 03, 2020 10:44 am
- Forum: Support and Development
- Topic: How to move a part of a canvas
- Replies: 4
- Views: 3960
How to move a part of a canvas
function love.load(arg, unfilteredArg) image = love.graphics.newImage('blocks.png') canvas = love.graphics.newCanvas(1000, 1000) canvas:renderTo(function () love.graphics.draw(image, 0, 0) end) end function love.draw() love.graphics.draw(canvas) end I want to move a part of the canvas (0,0,100,100)...