love.graphics.getColor() returns r-1,g-1,b-1,a-1
I discovered this while attempting to save and restore a color. Instead of restoring the color as I had desired, everything slowly faded to black. Here's the final code I tested with (nothing else)
-- main.lua function love.draw() love.graphics.setColor(250, 250, 250, 250) rd, gd, bd, ad = love.graphics.getColor() love.graphics.circle("fill",200,200,100) love.graphics.printf("rd: " .. rd .. "\ngd: " .. gd .. "\nbd: " .. bd .. "\nad: " .. ad, 0,0,500,"left") end
This outputs on the screen 249 for all each of r,g,b,a. Picture
If I comment out the setColor at the top, getColor returns 254 for all. Picture
The fix I employed: My machine is a 64-bit windows machine, so I used the windows 64-bit installer originally. I went to the website and got the 32-bit installer and installed. The problem disappeared (getColor returned the correct 250/255).
Here is a link to a forum post that was given to me by <markgo> in the irc channel.