getColor/setColor subtracting 1

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.
William Willing
Prole
Posts: 7
Joined: Mon Jan 07, 2013 8:48 pm

Re: getColor/setColor subtracting 1

Post by William Willing »

Uhfgood wrote:does this little workaround work for any color you get and set, or is it limited to 255, 255, 255, 255 ?

And if I put it in my source (where get color acts as it should) is it going to screw anything up for me (that does not have the problem) because If I can use it for any color, then I might put it in my source so that people that play my love file don't get that fading gray screen or whatever
It should work for every colour. The workaround checks how big the error is and the replaces love.graphics.getColor with a version that corrects for that error. If you don't have the error on your computer, it doesn't change a thing, but for anyone that does have the error, this should fix it.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 211 guests