Closed poke1024 closed 6 years ago
Yes, the Löve version jumped from 0.10.2 to 11.0 with the latest release. Although the release happened on April the First the change persists.
But I am skeptical about translating color values from range 0-255 into 0-1. This solution either forces the user to use the old range in all of her project or to handle 2 different color formats.
@airstruck Yes, they changed the version to 11.0, see VERSION_MAJOR
here:
The color range change is documented here as Changed all color values to be in the range 0-1, rather than 0-255.
:
Hello guys,
I'm thinking about how to make a wrapper for compat.
if n % 1 == 0` then love11=false end
if n > 1 then love11=false end
1
value. We are not able to detect the difference between the old value like 1/255 and the new 1.0 like 255/255.It remember me the worst API change ever made on Love : love.timer.sleep before/after 0.8.0
I don't think luigi should translate color values, with maybe the exception of those found in the example files.
@fendrin I'm torn on this one... SDL uses 0-255, so if Luigi moves to 0-1, it'll shift the problems you describe over to the SDL side. Luigi also works with older Love versions, so it'll also shift the problems back onto those versions if anyone's using them.
@tst2005 if only Lua were strongly typed ;)
I'm just gonna merge this for now, thanks @poke1024. Might be open to a 0-1 patch later, as long as it covers the SDL side. Or possibly something clever like choosing behavior based on Love version or user preference?
Did Love really jump from major version 0 to major version 11? Haven't looked at it in a while...