love.math.linearToGamma
Converts a color from linear-space (RGB) to gamma-space (sRGB). This is useful when storing linear RGB color values in an image, because the linear RGB color space has less precision than sRGB for dark colors, which can result in noticeable color banding when drawing.

In general, colors chosen based on what they look like on-screen are already in gamma-space and should not be double-converted. Colors calculated using math are often in the linear RGB space.

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.
cr, cg, cb = love.math.linearToGamma( lr, lg, lb )
lr number The red channel of the linear RGB color to convert.
lg number The green channel of the linear RGB color to convert.
lb number The blue channel of the linear RGB color to convert.
cr number The red channel of the converted color in gamma sRGB space.
cg number The green channel of the converted color in gamma sRGB space.
cb number The blue channel of the converted color in gamma sRGB space.
cr, cg, cb = love.math.linearToGamma( color )
color table An array with the red, green, and blue channels of the linear RGB color to convert.
cr number The red channel of the converted color in gamma sRGB space.
cg number The green channel of the converted color in gamma sRGB space.
cb number The blue channel of the converted color in gamma sRGB space.
c = love.math.linearToGamma( lc )
lc number The value of a color channel in linear RGB space to convert.
c number The value of the color channel in gamma sRGB space.