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.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.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.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.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.getVersion

love.getVersion Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the current running version of LÖVE. Function Synopsis major, minor, revision, codename = love.getVersion( ) Arguments None. Returns number major The major version of LÖVE, i.e. 0 for version 0.9.1. number minor The minor version of LÖVE, i.e. 9 for version 0.9.1. number revision The revision version of LÖVE, i.e. 1 for version 0.9.1. string codename The codename of the current version,

love.gamepadreleased

love.gamepadreleased Available since LÖVE 0.9.0 This function is not supported in earlier versions. Called when a Joystick's virtual gamepad button is released. Function Synopsis love.gamepadreleased( joystick, button ) Arguments Joystick joystick The joystick object. GamepadButton button The virtual gamepad button. Returns Nothing. See Also love love.gamepadpressed Joystick:isGamepad

love.gamepadpressed

love.gamepadpressed Available since LÖVE 0.9.0 This function is not supported in earlier versions. Called when a Joystick's virtual gamepad button is pressed. Function Synopsis love.gamepadpressed( joystick, button ) Arguments Joystick joystick The joystick object. GamepadButton button The virtual gamepad button. Returns Nothing. See Also love love.gamepadreleased Joystick:isGamepad

love.gamepadaxis

love.gamepadaxis Available since LÖVE 0.9.0 This function is not supported in earlier versions. Called when a Joystick's virtual gamepad axis is moved. Function Synopsis love.gamepadaxis( joystick, axis, value ) Arguments Joystick joystick The joystick object. GamepadAxis axis The virtual gamepad axis. number value The new axis value. Returns Nothing. See Also love Joystick:isGamepad Joystick:getGamepadAxis

love.font.newTrueTypeRasterizer

love.font.newTrueTypeRasterizer Available since LÖVE 0.7.0 This function is not supported in earlier versions. Creates a new TrueType Rasterizer. Function Create a TrueTypeRasterizer with the default font. Synopsis rasterizer = love.font.newTrueTypeRasterizer( size, hinting_mode ) Arguments number size The font size. HintingMode hinting_mode True Type hinting mode. Returns TrueTypeRasterizer rasterizer The rasterizer. See Also love.font love.font.newRasterizer love.font.newBMF