Canvas:getPixel

Canvas:getPixel Available since LÖVE 0.9.0 and removed in LÖVE 0.10.0 Use Canvas:newImageData instead. Gets the pixel at the specified position from a Canvas. Valid x and y values start at 0 and go up to canvas width and height minus 1. This function can be very slow: it can cause the CPU to wait for the GPU to finish all the work currently in its queue, which can be a whole frame's worth (or more.) Function Synopsis r, g, b, a = Canvas:getPixel( x, y ) Arguments number x The position

ParticleSystem:reset

ParticleSystem:reset Resets the particle emitter, removing any existing particles and resetting the lifetime counter. Function Synopsis ParticleSystem:reset( ) Arguments None. Returns Nothing. See Also ParticleSystem

enet.peer:ping interval

enet.peer:ping interval Specifies the interval in milliseconds that pings are sent to the other end of the connection (defaults to 500). Function Synopsis peer:ping_interval(interval) Arguments number interval Time in milliseconds to wait before automatically calling peer:ping(). Returns Nothing. See Also lua-enet enet.peer enet.peer:ping

love.physics.newMotorJoint

love.physics.newMotorJoint Available since LÖVE 0.9.0 This function is not supported in earlier versions. Creates a joint between two bodies which controls the relative motion between them. Position and rotation offsets can be specified once the MotorJoint has been created, as well as the maximum motor force and torque that will be be applied to reach the target offsets. Function Synopsis joint = love.physics.newMotorJoint( body1, body2, correctionFactor ) Arguments Body body1 The first

ParticleSystem:getCount

ParticleSystem:getCount Available since LÖVE 0.9.0 It has been renamed from ParticleSystem:count. Gets the number of particles that are currently in the system. Function Synopsis count = ParticleSystem:getCount( ) Arguments None. Returns number count The current number of live particles. See Also ParticleSystem ParticleSystem:getBufferSize

love.graphics.newScreenshot

love.graphics.newScreenshot Creates a screenshot and returns the image data. 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 screenshot = love.graphics.newScreenshot( ) Arguments None. Returns ImageData screenshot The image data of the screenshot. Function Available since LÖVE 0.9.0 This variant is not supported in earlier

love.graphics.setDefaultFilter

love.graphics.setDefaultFilter Available since LÖVE 0.9.0 It has been renamed from love.graphics.setDefaultImageFilter. Sets the default scaling filters used with Images, Canvases, and Fonts. Function Synopsis love.graphics.setDefaultFilter( min, mag, anisotropy ) Arguments FilterMode min Filter mode used when scaling the image down. FilterMode mag Filter mode used when scaling the image up. number anisotropy (1) Maximum amount of Anisotropic Filtering used. Returns Nothing. Notes Th

love.joystick.isOpen

love.joystick.isOpen Removed in LÖVE 0.9.0 This function is not supported in that and later versions. Checks if the joystick is open. Function Synopsis open = love.joystick.isOpen( joystick ) Arguments number joystick The joystick to be checked Returns boolean open True if the joystick is open, false if it is closed. See Also love.joystick

Body:getLocalCenter

Body:getLocalCenter Get the center of mass position in local coordinates. Use Body:getWorldCenter to get the center of mass in world coordinates. Function Synopsis x, y = Body:getLocalCenter( ) Arguments None. Returns number x The x coordinate of the center of mass. number y The y coordinate of the center of mass. See Also Body

Joint:getAnchors

Joint:getAnchors Get the anchor points of the joint. Function Synopsis x1, y1, x2, y2 = Joint:getAnchors( ) Arguments None. Returns number x1 The x-component of the anchor on Body 1. number y1 The y-component of the anchor on Body 1. number x2 The x-component of the anchor on Body 2. number y2 The y-component of the anchor on Body 2. See Also Joint