Canvas:getMSAA

Canvas:getMSAA Available since LÖVE 0.9.2 It has been renamed from Canvas:getFSAA. Gets the number of multisample antialiasing (MSAA) 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:getMSAA( ) Arguments None. Returns number samples The number of multisample antialiasing samples used by the canvas when drawing to it. Se

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

Canvas:getImageData

Canvas:getImageData Available since LÖVE 0.8.0 and removed in LÖVE 0.10.0 It has been renamed to Canvas:newImageData. Generates ImageData from the contents of the Canvas. Think of it as taking a screenshot of the hidden screen that is the Canvas. Function Synopsis data = Canvas:getImageData( ) Arguments None. Returns ImageData data The new ImageData made from the Canvas' image. See Also Canvas love.graphics.newScreenshot

Canvas:getHeight

Canvas:getHeight Gets the height of the Canvas. Function Synopsis height = Canvas:getHeight( ) Arguments None. Returns number height The height of the Canvas, in pixels. See Also Canvas Canvas:getWidth Canvas:getDimensions

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

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

Canvas:getFilter

Canvas:getFilter Available since LÖVE 0.8.0 This function is not supported in earlier versions. Gets the filter mode of the Canvas. Function Synopsis min, mag = Canvas:getFilter( ) Arguments None. Returns FilterMode min Filter mode used when minifying the canvas. FilterMode mag Filter mode used when magnifying the canvas. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis min, mag, anisotropy = Canvas:getFilter( ) Arguments None. Retur

Canvas:getDimensions

Canvas:getDimensions Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the width and height of the Canvas. Function Synopsis width, height = Canvas:getDimensions( ) Arguments None. Returns number width The width of the Canvas, in pixels. number height The height of the Canvas, in pixels. See Also Canvas

Canvas:clear

Canvas:clear Available since LÖVE 0.8.0 and removed in LÖVE 0.10.0 It has been replaced by love.graphics.clear. Clears the contents of a Canvas to a specific color. Calling this function directly after the Canvas becomes active (via love.graphics.setCanvas or Canvas:renderTo) is more efficient than calling it when the Canvas isn't active, especially on mobile devices. love.graphics.setScissor will restrict the area of the Canvas that this function affects. Function Clear the canvas to tr

Body:wakeUp

Body:wakeUp Removed in LÖVE 0.8.0 This method is not supported in that and later versions. Wake a sleeping body up. A sleeping body is much more efficient to simulate than when awake. A sleeping body will also wake up if another body collides with it or if a joint or contact attached to it is destroyed. Function Synopsis Body:wakeUp( ) Arguments None. Returns Nothing. See Also Body