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:

PixelEffect:getWarnings

PixelEffect:getWarnings Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns any warning messages from compiling the pixel effect code. This can be used for debugging your pixel effects if there's anything the graphics hardware doesn't like. Function Synopsis warnings = PixelEffect:getWarnings( ) Arguments None. Returns string warnings Warning messages (if any). See Also PixelEffect

Shape:getMask

Shape:getMask Removed in LÖVE 0.8.0 Use Fixture:getMask instead. Gets which categories this shape should NOT collide with. The number of masked categories is the number of return values. Function Synopsis ... = Shape:getMask( ) Arguments None. Returns number ... Numbers from 1-16 Examples With how many categories does this shape collide? print('shape collides with', select('#', shape:getMask()), 'categories') See Also Shape Shape:setMask

love.graphics.getColorMode

love.graphics.getColorMode Available since LÖVE 0.2.0 and removed in LÖVE 0.9.0 This function is not supported in earlier or later versions. Gets the color mode (which controls how images are affected by the current color). Function Synopsis mode = love.graphics.getColorMode( ) Arguments None. Returns ColorMode mode The current color mode. See Also love.graphics love.graphics.setColorMode

love.filesystem.getSaveDirectory

love.filesystem.getSaveDirectory Gets the full path to the designated save directory. This can be useful if you want to use the standard io library (or something else) to read or write in the save directory. Function Synopsis dir = love.filesystem.getSaveDirectory( ) Arguments None. Returns string dir The absolute path to the save directory. See Also love.filesystem

ParticleSystem:setOffset

ParticleSystem:setOffset Set the offset position which the particle sprite is rotated around. If this function is not used, the particles rotate around their center. Function Synopsis ParticleSystem:setOffset( x, y ) Arguments number x The x coordinate of the rotation offset. number y The y coordinate of the rotation offset. Returns Nothing. See Also ParticleSystem

Source:setPitch

Source:setPitch Sets the pitch of the Source. Function Synopsis Source:setPitch( pitch ) Arguments number pitch Calculated with regard to 1 being the base pitch. Each reduction by 50 percent equals a pitch shift of -12 semitones (one octave reduction). Each doubling equals a pitch shift of 12 semitones (one octave increase). Zero is not a legal value. Returns Nothing. Examples function love.load() sound = love.audio.newSource("sound.wav")   -- Note that this code, as-is, will set t

Contact:resetRestitution

Contact:resetRestitution Available since LÖVE 0.8.0 This function is not supported in earlier versions. Resets the contact restitution to the mixture value of both fixtures. Function Synopsis Contact:resetRestitution( ) Arguments None. Returns Nothing. See Also Contact

love.graphics.getCanvas

love.graphics.getCanvas Available since LÖVE 0.8.0 This function is not supported in earlier versions. Gets the current target Canvas. Function Synopsis canvas = love.graphics.getCanvas( ) Arguments None. Returns Canvas canvas The Canvas set by setCanvas. Returns nil if drawing to the real screen. See Also love.graphics Canvas love.graphics.setCanvas

Fixture:setSensor

Fixture:setSensor Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets whether the fixture should act as a sensor. Sensors do not cause collision responses, but the begin-contact and end-contact World callbacks will still be called for this fixture. Function Synopsis Fixture:setSensor( sensor ) Arguments boolean sensor The sensor status. Returns Nothing. See Also Fixture Fixture:isSensor