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: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: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: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:getWidth

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

Canvas:getWrap

Canvas:getWrap Available since LÖVE 0.8.0 It has been renamed from Framebuffer:getWrap. Gets the wrapping properties of a Canvas. This function returns the currently set horizontal and vertical wrapping modes for the Canvas. Function Synopsis horiz, vert = Canvas:getWrap( ) Arguments None. Returns WrapMode horiz Horizontal wrapping mode of the Canvas. WrapMode vert Vertical wrapping mode of the Canvas. See Also Canvas Canvas:setWrap WrapMode

Canvas:newImageData

Canvas:newImageData Available since LÖVE 0.10.0 It has been renamed from Canvas:getImageData. Generates ImageData from the contents of the Canvas. 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 data = Canvas:newImageData( ) Arguments None. Returns ImageData data The new ImageData made from the Canvas' contents. Function

Canvas:renderTo

Canvas:renderTo Available since LÖVE 0.8.0 It has been renamed from Framebuffer:renderTo. Render to the Canvas using a function. This is a shortcut to love.graphics.setCanvas: canvas:renderTo( func ) is the same as love.graphics.setCanvas( canvas ) func() love.graphics.setCanvas() Function Synopsis Canvas:renderTo( func ) Arguments function func A function performing drawing operations. Returns Nothing. Examples Using an anonymous function for drawing to a Canvas This example randoml

Canvas:setFilter

Canvas:setFilter Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the filter mode of the Canvas. Function Synopsis Canvas:setFilter( min, mag ) Arguments FilterMode min Filter mode to use when minifying the canvas. FilterMode mag Filter mode to use when magnifying the canvas. Returns Nothing. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis Canvas:setFilter( min, mag, anisotropy ) Arguments FilterMod