Text:getHeight

Text:getHeight Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the height of the text in pixels. Function Synopsis height = Text:getHeight( ) Arguments None. Returns number height The height of the text. If multiple sub-strings have been added with Text:add, the height of the last sub-string is returned. Function Gets the height of a specific sub-string that was previously added to the Text object. Synopsis height = Text:getHeight( index ) Argume

Fixture:testPoint

Fixture:testPoint Available since LÖVE 0.8.0 This method is not supported in earlier versions. Checks if a point is inside the shape of the fixture. Function Synopsis isInside = Fixture:testPoint( x, y ) Arguments number x The x position of the point. number y The y position of the point. Returns boolean isInside True if the point is inside or false if it is outside. See Also Fixture

SpriteBatch:getCount

SpriteBatch:getCount Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the number of sprites currently in the SpriteBatch. Function Synopsis count = SpriteBatch:getCount( ) Arguments None. Returns number count The number of sprites currently in the batch. See Also SpriteBatch SpriteBatch:getBufferSize

love.graphics.newCanvas

love.graphics.newCanvas Available since LÖVE 0.8.0 It has been renamed from love.graphics.newFramebuffer. Creates a new Canvas object for offscreen rendering. This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused! Function Synopsis canvas = love.graphics.newCanvas( ) Arguments None. Returns Canvas canvas A new Canvas with dimensions equal to the win

ParticleSystem:getSpinVariation

ParticleSystem:getSpinVariation Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the amount of spin variation (0 meaning no variation and 1 meaning full variation between start and end). Function Synopsis variation = ParticleSystem:getSpinVariation( ) Arguments Nothing. Returns number variation The amount of variation (0 meaning no variation and 1 meaning full variation between start and end). See Also ParticleSystem ParticleSystem:setSpinVariation

love.graphics.isActive

love.graphics.isActive Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets whether the graphics module is able to be used. If it is not active, love.graphics function and method calls will not work correctly and may cause the program to crash. The graphics module is inactive if a window is not open, or if the app is in the background on iOS. Typically the app's execution will be automatically paused by the system, in the latter case. Function Synopsis acti

love.window.toPixels

love.window.toPixels Available since LÖVE 0.9.2 This function is not supported in earlier versions. Converts a number from density-independent units to pixels. The pixel density inside the window might be greater (or smaller) than the "size" of the window. For example on a retina screen in Mac OS X with the highdpi window flag enabled, the window may take up the same physical size as an 800x600 window, but the area inside the window uses 1600x1200 pixels. love.window.toPixels(800) would re

BezierCurve:getControlPoint

BezierCurve:getControlPoint Available since LÖVE 0.9.0 This function is not supported in earlier versions. Get coordinates of the i-th control point. Indices start with 1. Function Synopsis x, y = BezierCurve:getControlPoint(i) Arguments number i Index of the control point. Returns number x Position of the control point along the x axis. number y Position of the control point along the y axis. See Also BezierCurve BezierCurve:getDegree BezierCurve:setControlPoint BezierCurve:

WeldJoint:setFrequency

WeldJoint:setFrequency Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets a new frequency. Function Synopsis WeldJoint:setFrequency( freq ) Arguments number freq The new frequency in hertz. Returns Nothing. See Also WeldJoint WeldJoint:getFrequency

(File):eof

(File):eof Removed in LÖVE 0.10.0 It has been renamed to File:isEOF. If the end-of-file has been reached Function Synopsis eof = File:eof( ) Arguments None. Returns boolean eof Whether EOF has been reached See Also File