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

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

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

ChainShape:getVertexCount Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns the number of vertices the shape has. Function Synopsis count = ChainShape:getVertexCount( ) Arguments None. Returns number count The number of vertices. See Also ChainShape

ChainShape:setNextVertex

ChainShape:setNextVertex Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets a vertex that establishes a connection to the next shape. This can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. Function Synopsis ChainShape:setNextVertex( x, y ) Arguments number x The x-component of the vertex. number y The y-component of the vertex. Returns Nothing. See Also ChainShape ChainShape:setPreviousVer

ChainShape:setPreviousVertex

ChainShape:setPreviousVertex Available since LÖVE 0.9.0 It has been renamed from ChainShape:setPrevVertex. Sets a vertex that establishes a connection to the previous shape. This can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. Function Synopsis ChainShape:setPreviousVertex( x, y ) Arguments number x The x-component of the vertex. number y The y-component of the vertex. Returns Nothing. See Also ChainShape ChainShape:set

ChainShape:setPrevVertex

ChainShape:setPrevVertex Available since LÖVE 0.8.0 This function is not supported in earlier versions. Removed in LÖVE 0.9.0 It has been renamed to ChainShape:setPreviousVertex. Sets a vertex that establishes a connection to the previous shape. This can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. Function Synopsis ChainShape:setPrevVertex( x, y ) Arguments number x The x-component of the vertex. number y The y-component