Updated doc/api.md for setColor/setBackgroundColor

This commit is contained in:
rxi
2016-09-22 19:56:49 +01:00
parent b73dea5350
commit 6ec66adf57

View File

@@ -48,17 +48,15 @@ Returns the height of the screen in pixels.
##### love.graphics.getBackgroundColor() ##### love.graphics.getBackgroundColor()
Returns the currently set background color. Returns the currently set background color.
##### love.graphics.setBackgroundColor([color]) ##### love.graphics.setBackgroundColor([red [, green [, blue]]])
Sets the the background color used when `love.graphics.clear()` is called Sets the the background color used when `love.graphics.clear()` is called
without any arguments. If no `color` argument is passed to the function then without any arguments.
the background color is reset to the default.
##### love.graphics.getColor() ##### love.graphics.getColor()
Returns the currently set color. Returns the currently set color.
##### love.graphics.setColor([color]) ##### love.graphics.setColor([red [, green [, blue]]])
Sets the the color used when drawing. If no `color` argument is passed to the Sets the the color used when drawing.
function then the color is reset to the default.
##### love.graphics.getBlendMode() ##### love.graphics.getBlendMode()
Returns the currently set blend mode. Returns the currently set blend mode.