Search found 3 matches

by ZappD0S
Tue Aug 18, 2015 3:25 pm
Forum: Support and Development
Topic: Question about canvas behavior
Replies: 5
Views: 3065

Re: Question about canvas behavior

Thank you! I figured that there was a similar reason but since i'm new to this engine i wasn't sure and I preferred to ask.
by ZappD0S
Tue Aug 18, 2015 3:13 pm
Forum: Support and Development
Topic: Question about canvas behavior
Replies: 5
Views: 3065

Re: Question about canvas behavior

Sorry, I forgot to specify that this code works only if setCanvas() is in the load() function. If I put in draw() it doesn't work as well.
by ZappD0S
Tue Aug 18, 2015 2:07 pm
Forum: Support and Development
Topic: Question about canvas behavior
Replies: 5
Views: 3065

Question about canvas behavior

Hi everyone, I recently started to learn LÖVE and I stumbled on a problem. Here's the code i wrote: function love.load() canvas = love.graphics.newCanvas() love.graphics.setCanvas(canvas) canvas:clear() love.graphics.setColor(85, 34, 159, 255) love.graphics.rectangle('fill', 0, 0, 400, 400) end func...