love.graphics.setColorMask

love.graphics.setColorMask Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the color mask. Enables or disables specific color components when rendering and clearing the screen. For example, if red is set to false, no further changes will be made to the red component of any pixels. Function Enables color masking for the specified color components. Synopsis love.graphics.setColorMask( red, green, blue, alpha ) Arguments boolean red Render red component.

love.graphics.setColor

love.graphics.setColor Sets the color used for drawing. Function Synopsis love.graphics.setColor( red, green, blue, alpha ) Arguments number red The amount of red. number green The amount of green. number blue The amount of blue. number alpha (255) The amount of alpha. The alpha value will be applied to all subsequent draw operations, even the drawing of an image. Returns Nothing. Function Available since LÖVE 0.7.0 This variant is not supported in earlier versions. Synopsis love.gr

love.graphics.setCaption

love.graphics.setCaption Removed in LÖVE 0.9.0 Moved to the love.window module as love.window.setTitle. Sets the window caption. Function Synopsis love.graphics.setCaption( caption ) Arguments string caption The new window caption. Returns Nothing. See Also love.graphics

love.graphics.setCanvas

love.graphics.setCanvas Available since LÖVE 0.8.0 It has been renamed from love.graphics.setRenderTarget. Captures drawing operations to a Canvas. Function Sets the render target to a specified Canvas. All drawing operations until the next love.graphics.setCanvas call will be redirected to the Canvas and not shown on the screen. Synopsis love.graphics.setCanvas( canvas ) Arguments Canvas canvas The new target. Returns Nothing. Function Resets the render target to the screen, i.e. re-

love.graphics.setBlendMode

love.graphics.setBlendMode Sets the blending mode. Function Synopsis love.graphics.setBlendMode( mode ) Arguments BlendMode mode The blend mode to use. Returns Nothing. Function Available since LÖVE 0.10.0 This variant is not supported in earlier versions. Synopsis love.graphics.setBlendMode( mode, alphamode ) Arguments BlendMode mode The blend mode to use. BlendAlphaMode alphamode ("alphamultiply") What to do with the alpha of drawn objects when blending. Returns Nothing. Notes T

love.graphics.setBackgroundColor

love.graphics.setBackgroundColor Sets the background color. Function Synopsis love.graphics.setBackgroundColor( red, green, blue ) Arguments number red The red component (0-255). number green The green component (0-255). number blue The blue component (0-255). Returns Nothing. Function Available since LÖVE 0.8.0 This variant is not supported in earlier versions. Synopsis love.graphics.setBackgroundColor( red, green, blue, alpha ) Arguments number red The red component (0-255). numbe

love.graphics.scale

love.graphics.scale Scales the coordinate system in two dimensions. By default the coordinate system in LÖVE corresponds to the display pixels in horizontal and vertical directions one-to-one, and the x-axis increases towards the right while the y-axis increases downwards. Scaling the coordinate system changes this relation. After scaling by sx and sy, all coordinates are treated as if they were multiplied by sx and sy. Every result of a drawing operation is also correspondingly scaled, so sc

love.graphics.reset

love.graphics.reset Resets the current graphics settings. Calling reset makes the current drawing color white, the current background color black, disables any active Canvas or Shader, and removes any scissor settings. It sets the BlendMode to alpha, enables all color component masks, disables wireframe mode and resets the current graphics transformation to the origin. It also sets both the point and line drawing modes to smooth and their sizes to 1.0. Function Synopsis love.graphics.reset( )

love.graphics.rotate

love.graphics.rotate Rotates the coordinate system in two dimensions. Calling this function affects all future drawing operations by rotating the coordinate system around the origin by the given amount of radians. This change lasts until love.draw() exits. Function Synopsis love.graphics.rotate( angle ) Arguments number angle The amount to rotate the coordinate system in radians. Returns Nothing. Examples Rotating a static scene This example shows how to rotate a static scene around a giv

love.graphics.rectangle

love.graphics.rectangle Draws a rectangle. Function Synopsis love.graphics.rectangle( mode, x, y, width, height ) Arguments DrawMode mode How to draw the rectangle. number x The position of top-left corner along the x-axis. number y The position of top-left corner along the y-axis. number width Width of the rectangle. number height Height of the rectangle. Returns Nothing. Function Available since LÖVE 0.10.0 This variant is not supported in earlier versions. Draws a rectangle with