Canvas Messing Up Colors

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
ericsantosbr
Prole
Posts: 3
Joined: Tue Feb 12, 2019 3:18 am

Canvas Messing Up Colors

Post 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!
grump
Party member
Posts: 947
Joined: Sat Jul 22, 2017 7:43 pm

Re: Canvas Messing Up Colors

Post by grump »

Everything you draw is modulated by the current color. Try love.graphics.setColor(1, 1, 1) before drawing the canvas.
ericsantosbr
Prole
Posts: 3
Joined: Tue Feb 12, 2019 3:18 am

Re: Canvas Messing Up Colors

Post by ericsantosbr »

This worked. Thank you!
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 25 guests