ImageData:getWidth

ImageData:getWidth Gets the width of the ImageData in pixels. Function Synopsis width = ImageData:getWidth( ) Arguments None. Returns number width The width of the ImageData in pixels. See Also ImageData

love.graphics.setFont

love.graphics.setFont Set an already-loaded Font as the current font or create and load a new one from the file and size. It's recommended that Font objects are created with love.graphics.newFont in the loading stage and then passed to this function in the drawing stage. Function Synopsis love.graphics.setFont( font ) Arguments Font font The Font object to use. Returns Nothing. Function Removed in LÖVE 0.8.0 This variant is not supported in that and later versions. Synopsis love.graph

Body:getAngle

Body:getAngle Get the angle of the body. The angle is measured in radians. If you need to transform it to degrees, use math.deg. A value of 0 radians will mean "looking to the right". Although radians increase counter-clockwise, the y axis points down so it becomes clockwise from our point of view. Function Synopsis angle = Body:getAngle( ) Arguments None. Returns number angle The angle in radians. See Also Body

Font:getWrap

Font:getWrap Available since LÖVE 0.7.0 This function is not supported in earlier versions. Gets formatting information for text, given a wrap limit. This function accounts for newlines correctly (i.e. '\n'). Function Available since LÖVE 0.10.0 This variant is not supported in earlier versions. Synopsis width, wrappedtext = Font:getWrap( text, wraplimit ) Arguments string text The text that will be wrapped. number wraplimit The maximum width in pixels of each line that text is allo

PrismaticJoint:getMotorSpeed

PrismaticJoint:getMotorSpeed Gets the motor speed. Function Synopsis s = PrismaticJoint:getMotorSpeed( ) Arguments None. Returns number s The motor speed, usually in meters per second. See Also PrismaticJoint

WheelJoint:getMotorTorque

WheelJoint:getMotorTorque Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the current torque on the motor. Function Synopsis torque = WheelJoint:getMotorTorque( invdt ) Arguments number invdt How long the force applies. Usually the inverse time step or 1/dt. Returns number torque The torque on the motor in newton meters. See Also WheelJoint

Canvas:getFormat

Canvas:getFormat Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the texture format of the Canvas. Function Synopsis format = Canvas:getFormat( ) Arguments None. Returns CanvasFormat format The format of the Canvas. See Also Canvas love.graphics.newCanvas

World:queryBoundingBox

World:queryBoundingBox Available since LÖVE 0.8.0 This method is not supported in earlier versions. Calls a function for each fixture inside the specified area by searching for any overlapping bounding box (Fixture:getBoundingBox). Function Synopsis World:queryBoundingBox( topLeftX, topLeftY, bottomRightX, bottomRightY, callback ) Arguments number topLeftX The x position of the top-left point. number topLeftY The y position of the top-left point. number bottomRightX The x position of t

love.graphics.newStencil

love.graphics.newStencil Available since LÖVE 0.8.0 and removed in LÖVE 0.9.0 Lua functions can be used directly with love.graphics.stencil (or love.graphics.setStencil in 0.9). Creates a new stencil. Function Synopsis myStencil = love.graphics.newStencil( stencilFunction ) Arguments function stencilFunction Function that draws the stencil. Returns function myStencil Function that defines the new stencil. See Also love.graphics love.graphics.setStencil love.graphics.setInvertedS

love.joystick.open

love.joystick.open Removed in LÖVE 0.9.0 This function is not supported in that and later versions. Opens up a joystick to be used, i.e. makes it ready to use. By default joysticks that are available at the start of your game will be opened. NOTE: Unlike conventional Lua indexes, joysticks begin counting from 0 in LÖVE 0.7.2 and below. To to open the first joystick, you would use love.joystick.open(0). This is not the case in LÖVE 0.8.0 and later. Function Synopsis open = love.joystick.op