Difference between revisions of "ColorMode"

(Implement the new 'constant' template.)
(added 'modulate')
Line 4: Line 4:
 
{{constant|modulate|Images (etc) will be affected by the current color.}}
 
{{constant|modulate|Images (etc) will be affected by the current color.}}
 
{{constant|replace|Replace color mode. Images (etc) will not be affected by current color.}}
 
{{constant|replace|Replace color mode. Images (etc) will not be affected by current color.}}
 +
{{constant|combine (since 0.8.0)|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.}}
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]

Revision as of 18:15, 16 September 2012

Available since LÖVE 0.2.0
This enum is not supported in earlier versions.

Controls whether images will be affected by the current color.

Constants

modulate
Images (etc) will be affected by the current color.
replace
Replace color mode. Images (etc) will not be affected by current color.
combine (since 0.8.0)
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.

See Also

Other Languages