Available since LÖVE 0.8.0
This method is not supported in earlier versions.
Sets the color that will be used for the next add and set operations. Calling the function without arguments will disable all per-sprite colors for the SpriteBatch.
In version 0.9.2 and older, the global color set with love.graphics.setColor will not work on the SpriteBatch if any of the sprites has its own color.
SpriteBatch:setColor( r, g, b, a )
number r
number g
number b
number a (255)
Nothing.
Disables all per-sprite colors for this SpriteBatch.
SpriteBatch:setColor( )
None.
Nothing.
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/SpriteBatch:setColor