Difference between revisions of "SpriteBatch:setColor"

(Added SpriteBatch:setColor.)
 
m
Line 1: Line 1:
{{newin|[[0.8.0]]|type=method}}
+
{{newin|[[0.8.0]]|080|type=method}}
 
Sets the color that will be used for the next add and set operations. Calling the function without arguments will clear the color.
 
Sets the color that will be used for the next add and set operations. Calling the function without arguments will clear the color.
  

Revision as of 13:49, 4 May 2012

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 clear the color.

The global color set with love.graphics.setColor will not work on the SpriteBatch if any of the sprites has its own color.

Function

Synopsis

SpriteBatch:setColor( )

Arguments

None.

Returns

Nothing.

Function

Synopsis

SpriteBatch:setColor( r, g, b, a )

Arguments

number r
The amount of red.
number g
The amount of green.
number b
The amount of blue.
number a (255)
The amount of alpha.

Returns

Nothing.

See Also


Other Languages