Difference between revisions of "love.graphics.setColorMode"

(See Also)
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
=== Examples ===
 
Images (etc) will be affected by the current color:
 
<source lang="lua">
 
love.graphics.setColorMode('modulate')
 
</source>
 
 
Replace color mode. Images (etc) will not be affected by current color:
 
<source lang="lua">
 
love.graphics.setColorMode('replace')
 
</source>
 
 
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:
 
<source lang="lua">
 
love.graphics.setColorMode('combine')
 
</source>
 
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 
* [[love.graphics.getColorMode]]
 
* [[love.graphics.getColorMode]]
 +
* [[love.graphics.setBlendMode]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Sets the color mode (which controls how images are affected by the current color).}}
 
{{#set:Description=Sets the color mode (which controls how images are affected by the current color).}}
Line 33: Line 19:
 
{{#set:Since=020}}
 
{{#set:Since=020}}
 
{{#set:PrettySince=[[0.2.0]]}}
 
{{#set:PrettySince=[[0.2.0]]}}
 +
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.setColorMode}}
 
{{i18n|love.graphics.setColorMode}}

Latest revision as of 20:28, 23 October 2021

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.

See Also



Other Languages