Page 1 of 1

Canvas Messing Up Colors

Posted: Thu Apr 11, 2019 3:18 pm
by ericsantosbr
Hi everyone!

I was making an small project for testing a multicamera system using Canvas, but i'm passing for a little trouble when drawning the actual Canvas. When the canvases are being drawn, their color tones are getting kinda darker. As for a comparison, the small red block in this image is the character, and I drawn a red rectangle after the canvases drawning. As you can see, even tho they're both red, the smaller square is way darker. Is there some reason for this to happen?

Image

Thanks for the help!

Re: Canvas Messing Up Colors

Posted: Thu Apr 11, 2019 9:30 pm
by grump
Everything you draw is modulated by the current color. Try love.graphics.setColor(1, 1, 1) before drawing the canvas.

Re: Canvas Messing Up Colors

Posted: Fri Apr 12, 2019 3:33 am
by ericsantosbr
This worked. Thank you!