love.graphics.setColorMode

Available since LÖVE 0.2.0 and removed in LÖVE 0.9.0
This function is not supported in earlier or later versions.

Sets the color mode (which controls how images are affected by the current color).

Function

Synopsis

love.graphics.setColorMode( mode )

Arguments

ColorMode mode
The color mode to use.

Returns

Nothing.

Examples

Images (etc) will be affected by the current color:

love.graphics.setColorMode('modulate')

Replace color mode. Images (etc) will not be affected by current color:

love.graphics.setColorMode('replace')

Colorize images (etc) with the current color. While 'modulate' works like a filter that absorbs colors that differ from the current color (possibly to a point where a color channel is entirely absorbed), 'combine' tints the image in a way that preserves a hint of the original colors:

love.graphics.setColorMode('combine')

See Also



Other Languages