Joystick:setVibration

Joystick:setVibration Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the vibration motor speeds on a Joystick with rumble support. Most common gamepads have this functionality, although not all drivers give proper support. Use Joystick:isVibrationSupported to check. Function Synopsis success = Joystick:setVibration( left, right ) Arguments number left Strength of the left vibration motor on the Joystick. Must be in the range of [0, 1]. number right St

love.window.hasFocus

love.window.hasFocus Available since LÖVE 0.9.0 This function is not supported in earlier versions. Checks if the game window has keyboard focus. Function Synopsis focus = love.window.hasFocus( ) Arguments None. Returns boolean focus True if the window has the focus or false if not. See Also love.window

Canvas:getFSAA

Canvas:getFSAA Available since LÖVE 0.9.1 This function is not supported in earlier versions. Removed in LÖVE 0.10.0 It has been renamed to Canvas:getMSAA. Gets the number of antialiasing samples used when drawing to the Canvas. This may be different than the number used as an argument to love.graphics.newCanvas if the system running LÖVE doesn't support that number. Function Synopsis samples = Canvas:getFSAA( ) Arguments None. Returns number samples The number of antialiasing sampl

love.graphics.setMode

love.graphics.setMode Removed in LÖVE 0.9.0 Moved to the love.window module as love.window.setMode. Changes the window size, or the display mode if fullscreen. If width or height is 0, setMode will use the width or height of the desktop. Changing the display mode may have side effects: for example, Canvases will be cleared; make sure to save their contents beforehand. Function Synopsis success = love.graphics.setMode( width, height, fullscreen, vsync, fsaa ) Arguments number width Disp

love.resize

love.resize Available since LÖVE 0.9.0 This callback is not supported in earlier versions. Called when the window is resized, for example if the user resizes the window, or if love.window.setMode is called with an unsupported width or height in fullscreen and the window chooses the closest appropriate size. Function Synopsis love.resize( w, h ) Arguments number w The new width, in pixels. number h The new height, in pixels. Returns Nothing. Notes Calls to love.window.setMode will only

love.image.isCompressed

love.image.isCompressed Available since LÖVE 0.9.0 This function is not supported in earlier versions. Determines whether a file can be loaded as CompressedImageData. Function Synopsis compressed = love.image.isCompressed( filename ) Arguments string filename The filename of the potentially compressed image file. Returns boolean compressed Whether the file can be loaded as CompressedImageData or not. Function Synopsis compressed = love.image.isCompressed( fileData ) Arguments FileDat

Mesh:attachAttribute

Mesh:attachAttribute Available since LÖVE 0.10.0 This function is not supported in earlier versions. Attaches a vertex attribute from a different Mesh onto this Mesh, for use when drawing. This can be used to share vertex attribute data between several different Meshes. Function Synopsis Mesh:attachAttribute( name, mesh ) Arguments string name The name of the vertex attribute to attach. Mesh mesh The Mesh to get the vertex attribute from. Returns Nothing. Notes If a Mesh wasn't create

love.graphics.getFont

love.graphics.getFont Gets the current Font object. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis font = love.graphics.getFont( ) Arguments None. Returns Font font The current Font. Automatically creates and sets the default font, if none is set yet. Function Removed in LÖVE 0.9.0 This variant is not supported in that and later versions. Synopsis font = love.graphics.getFont( ) Arguments None. Returns Font font The current Font, o

love.graphics.setLineStyle

love.graphics.setLineStyle Sets the line style. Function Synopsis love.graphics.setLineStyle( style ) Arguments LineStyle style The LineStyle to use. Line styles include smooth and rough. Returns Nothing. See Also love.graphics love.graphics.getLineStyle love.graphics.setLineWidth

ImageData:getPixel

ImageData:getPixel Gets the color of a pixel at a specific position in the image. Valid x and y values start at 0 and go up to image width and height minus 1. Non-integer values are floored. Prior to 0.10.2, this function does not properly handle non-integer coordinates, and may produce an invalid result when non-integer values are passed. Function Synopsis r, g, b, a = ImageData:getPixel( x, y ) Arguments number x The position of the pixel on the x-axis. number y The position of the pixel