Search found 4 matches

by CrypticWombat
Fri Feb 16, 2024 9:59 pm
Forum: Support and Development
Topic: Strange color behavior using rectangle() and a scaled canvas
Replies: 6
Views: 668

Re: Strange color behavior using rectangle() and a scaled canvas

When you draw anything, the active color is multiplied with it to produce a final result. So setting the active color to (0, 0, 0) will multiply the thing's colors by 0, which produces black. That is definitely consistent with the behavior I've observed! Thank you for the info - that resolves the s...
by CrypticWombat
Fri Feb 16, 2024 6:44 pm
Forum: Support and Development
Topic: Strange color behavior using rectangle() and a scaled canvas
Replies: 6
Views: 668

Re: Strange color behavior using rectangle() and a scaled canvas

Interesting - thank you! Yes, when I set the color (to white) immediately before drawing the canvas to the screen (at the end of the draw loop), it corrects the issue I was having. As in: love.graphics.setColor(1, 1, 1) --new line love.graphics.draw(canvas, 0, 0, 0, scaleFactor, scaleFactor) So, is ...
by CrypticWombat
Fri Feb 16, 2024 5:11 pm
Forum: Support and Development
Topic: Strange color behavior using rectangle() and a scaled canvas
Replies: 6
Views: 668

Strange color behavior using rectangle() and a scaled canvas

Hello! I think I might have found a bug, and I was hoping I could get a sanity check before trying to post a bug report about it. I'm very new to love, and I am well aware that this could just be an issue with my code. Anyways, here's what I'm observing: I'm trying to draw to a canvas (84x48 pixels)...