love.graphics.arc

love.graphics.arc Available since LÖVE 0.8.0 This function is not supported in earlier versions. Draws a filled or unfilled arc at position (x, y). The arc is drawn from angle1 to angle2 in radians. The segments parameter determines how many segments are used to draw the arc. The more segments, the smoother the edge. Function Draws an arc using the "pie" ArcType. Synopsis love.graphics.arc( drawmode, x, y, radius, angle1, angle2, segments ) Arguments DrawMode drawmode How to draw the arc

love.graphics.checkMode

love.graphics.checkMode Removed in LÖVE 0.9.0 This function is not supported in that and later versions. Checks if a display mode is supported. Function Synopsis supported = love.graphics.checkMode( width, height, fullscreen ) Arguments number width The display width. number height The display height. boolean fullscreen (false) True to check for fullscreen, false for windowed. Returns boolean supported True if supported, false if not. See Also love.graphics

love.graphics.circle

love.graphics.circle Draws a circle. Function Synopsis love.graphics.circle( mode, x, y, radius ) Arguments DrawMode mode How to draw the circle. number x The position of the center along x-axis. number y The position of the center along y-axis. number radius The radius of the circle. Returns Nothing. Function Synopsis love.graphics.circle( mode, x, y, radius, segments ) Arguments DrawMode mode How to draw the circle. number x The position of the center along x-axis. number y The pos

love.graphics.clear

love.graphics.clear Clears the screen to the background color in LÖVE 0.9.2 and earlier, or to the specified color in 0.10.0 and newer. This function is called automatically before love.draw in the default love.run function. See the example in love.run for a typical use of this function. Note that the scissor area bounds the cleared region. Function Clears the screen to the background color in 0.9.2 and earlier, or to transparent black (0, 0, 0, 0) in LÖVE 0.10.0 and newer. Synopsis love.gr

love.graphics.discard

love.graphics.discard Available since LÖVE 0.10.0 This function is not supported in earlier versions. Discards (trashes) the contents of the screen or active Canvas. This is a performance optimization function with niche use cases. If the active Canvas has just been changed and the "replace" BlendMode is about to be used to draw something which covers the entire screen, calling love.graphics.discard rather than calling love.graphics.clear or doing nothing may improve performance on mobile

love.graphics.draw

love.graphics.draw Draws a Drawable object (an Image, Canvas, SpriteBatch, ParticleSystem, Mesh, or Video) on the screen with optional rotation, scaling and shearing. Objects are drawn relative to their local coordinate system. The origin is by default located at the top left corner of Image and Canvas. All scaling, shearing, and rotation arguments transform the object relative to that point. Also, the position of the origin can be specified on the screen coordinate system. It's possible to r

love.graphics.drawq

love.graphics.drawq Removed in LÖVE 0.9.0 It has been merged into love.graphics.draw. Draw a Quad with the specified Image on screen. Function Synopsis love.graphics.drawq( image, quad, x, y, r, sx, sy, ox, oy, kx, ky ) Arguments Image image An image to texture the quad with. Quad quad The quad to draw on screen. number x The position to draw the object (x-axis). number y The position to draw the object (y-axis). number r (0) Orientation (radians). number sx (1) Scale factor (x-axis)

love.graphics.ellipse

love.graphics.ellipse Available since LÖVE 0.10.0 This function is not supported in earlier versions. Draws an ellipse. Function Synopsis love.graphics.ellipse( mode, x, y, radiusx, radiusy ) Arguments DrawMode mode How to draw the ellipse. number x The position of the center along x-axis. number y The position of the center along y-axis. number radiusx The radius of the ellipse along the x-axis (half the ellipse's width.) number radiusy The radius of the ellipse along the y-axis (hal

love.graphics.getBackgroundColor

love.graphics.getBackgroundColor Gets the current background color. Function Synopsis r, g, b, a = love.graphics.getBackgroundColor( ) Arguments None. Returns number r The red component (0-255). number g The green component (0-255). number b The blue component (0-255). number a The alpha component (0-255). See Also love.graphics love.graphics.setBackgroundColor

love.graphics.getBlendMode

love.graphics.getBlendMode Gets the blending mode. Function Available since LÖVE 0.10.0 This variant is not supported in earlier versions. Synopsis mode, alphamode = love.graphics.getBlendMode( ) Arguments None. Returns BlendMode mode The current blend mode. BlendAlphaMode alphamode The current blend alpha mode – it determines how the alpha of drawn objects affects blending. Function Removed in LÖVE 0.10.0 This variant is not supported in that and later versions. Synopsis mode = l