love.math.gammaToLinear
Converts a color from gamma-space (sRGB) to linear-space (RGB). This is useful when doing gamma-correct rendering and you need to do math in linear RGB in the few cases where LÖVE doesn't handle conversions automatically.

Read more about gamma-correct rendering here, here, and here.

In versions prior to 11.0, color component values were within the range of 0 to 255 instead of 0 to 1.
lr, lg, lb = love.math.gammaToLinear( r, g, b )
r number The red channel of the sRGB color to convert.
g number The green channel of the sRGB color to convert.
b number The blue channel of the sRGB color to convert.
lr number The red channel of the converted color in linear RGB space.
lg number The green channel of the converted color in linear RGB space.
lb number The blue channel of the converted color in linear RGB space.
lr, lg, lb = love.math.gammaToLinear( color )
color table An array with the red, green, and blue channels of the sRGB color to convert.
lr number The red channel of the converted color in linear RGB space.
lg number The green channel of the converted color in linear RGB space.
lb number The blue channel of the converted color in linear RGB space.
lc = love.math.gammaToLinear( c )
c number The value of a color channel in sRGB space to convert.
lc number The value of the color channel in linear RGB space.