ChainShape:getPreviousVertex

ChainShape:getPreviousVertex Available since LÖVE 0.10.2 This function is not supported in earlier versions. Gets the vertex that establishes a connection to the previous shape. Setting next and previous ChainShape vertices can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. Function Synopsis x, y = ChainShape:getPreviousVertex( ) Arguments None. Returns number x (nil) The x-component of the vertex, or nil if ChainShape:setPrevio

ChainShape:getPoints

ChainShape:getPoints Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns all points of the shape. A bug in 0.8.0 causes memory corruption if this function gets called on a ChainShape with more than 8 points. Function Synopsis x1, y1, x2, y2, ... = ChainShape:getPoints( ) Returns number x1 The x-coordinate of the first point. number y1 The y-coordinate of the first point. number x2 The x-coordinate of the second point. number y2 The y-coordinate of th

ChainShape:getPoint

ChainShape:getPoint Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns a point of the shape. Function Synopsis x, y = ChainShape:getPoint( index ) Arguments number index The index of the point to return. Returns number x The x-coordinate of the point. number y The y-coordinate of the point. See Also ChainShape

ChainShape:getNextVertex

ChainShape:getNextVertex Available since LÖVE 0.10.2 This function is not supported in earlier versions. Gets the vertex that establishes a connection to the next shape. Setting next and previous ChainShape vertices can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. Function Synopsis x, y = ChainShape:getNextVertex( ) Arguments None. Returns number x (nil) The x-component of the vertex, or nil if ChainShape:setNextVertex hasn't

ChainShape:getChildEdge

ChainShape:getChildEdge Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns a child of the shape as an EdgeShape. Function Synopsis shape = ChainShape:getChildEdge( index ) Arguments number index The index of the child. Returns EdgeShape shape The child as an EdgeShape. See Also ChainShape

Canvas:setWrap

Canvas:setWrap Available since LÖVE 0.8.0 It has been renamed from Framebuffer:setWrap. Sets the wrapping properties of a Canvas. This function sets the way the edges of a Canvas are treated if it is scaled or rotated. If the WrapMode is set to 'clamp', the edge will not be interpolated. If set to 'repeat', the edge will be interpolated with the pixels on the opposing side of the framebuffer. Function Synopsis Canvas:setWrap( horiz, vert ) Arguments WrapMode horiz Horizontal wrapping mod

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

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