Search found 3 matches

by runs
Wed Sep 22, 2021 8:11 pm
Forum: Support and Development
Topic: [SOLVED] Refresh canvas?
Replies: 4
Views: 5086

Re: Refresh canvas?

Finally I've solved with love.graphics.reset( ) instead of clear() cos a previous scale setting, the canvas did not dissapear but was giant.

Thanx for your support.
by runs
Tue Sep 21, 2021 9:39 pm
Forum: Support and Development
Topic: [SOLVED] Refresh canvas?
Replies: 4
Views: 5086

Re: Refresh canvas?

If i'm understanding you right, You just need to add love.graphics.clear() right below love.graphics.setCanvas(canvas) local function compose_canvas(x, y) --love.graphics.clear() love.graphics.setCanvas(canvas) love.graphics.clear() love.graphics.setColor(0.8, 0.9, 0.4) love.graphics.rectangle(&quo...
by runs
Tue Sep 21, 2021 2:52 pm
Forum: Support and Development
Topic: [SOLVED] Refresh canvas?
Replies: 4
Views: 5086

[SOLVED] Refresh canvas?

I want to refresh a canvas. My code is: local function compose_canvas(x, y) --love.graphics.clear() love.graphics.setCanvas(canvas) love.graphics.setColor(0.8, 0.9, 0.4) love.graphics.rectangle("fill", x, y, 100, 100) love.graphics.setCanvas() end function love.load() canvas = love.graphic...