Search found 3 matches

by shingoscar
Mon Oct 26, 2020 2:51 pm
Forum: Support and Development
Topic: Confused with the descriptions of transformPoint and inverseTransformPoint
Replies: 1
Views: 3217

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...
by shingoscar
Sun Oct 04, 2020 2:12 pm
Forum: Support and Development
Topic: How to move a part of a canvas
Replies: 4
Views: 3802

Re: How to move a part of a canvas

ReFreezed wrote: Sat Oct 03, 2020 4:05 pm Just draw 'image' to different coordinates?
Thanks, but the image here is for convience, the canvas is quite complex than a single image.
by shingoscar
Sat Oct 03, 2020 10:44 am
Forum: Support and Development
Topic: How to move a part of a canvas
Replies: 4
Views: 3802

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)...