(Image):setMipmapFilter

(Image):setMipmapFilter Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the mipmap filter mode for an Image. Mipmapping is useful when drawing an image at a reduced scale. It can improve performance and reduce aliasing issues. In 0.10.0 and newer, the Image must be created with the mipmaps flag enabled for the mipmap filter to have any effect. In versions prior to 0.10.0 it's best to call this method directly after creating the image with love.graphics

(Image):setWrap

(Image):setWrap Sets the wrapping properties of an Image. This function sets the way an Image is repeated when it is drawn with a Quad that is larger than the image's extent. An image may be clamped or set to repeat in both horizontal and vertical directions. Clamped images appear only once, but repeated ones repeat as many times as there is room in the Quad. N.B. If you use a Quad that is larger than the image extent and do not use repeated tiling, there may be an unwanted visual effect of

Audio Formats

Audio Formats As of Love 0.9.1, the following audio formats are supported: Waveform Audio File Format (.wav) MPEG-1 or MPEG-2 Audio Layer III (.mp3) Ogg Vorbis (.ogg, .oga, .ogv) Tracker module formats (.699, .amf, .ams, .dbm, .dmf, .dsm, .far, .it, .j2b, .mdl, .med, .mod, .mt2, .mtm, .okt, .psm, .s3m, .stm, .ult, .umx, .xm) Other formats supported by libmodplug (.abc, .mid, .pat) See Also love.audio love.sound

BezierCurve:evaluate

BezierCurve:evaluate Available since LÖVE 0.9.0 This function is not supported in earlier versions. Evaluate Bézier curve at parameter t. The parameter must be between 0 and 1 (inclusive). This function can be used to move objects along paths or tween parameters. However it should not be used to render the curve, see BezierCurve:render for that purpose. Function Synopsis x,y = BezierCurve:evaluate(t) Arguments number t Where to evaluate the curve. Returns number x x coordinate of the

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:

BezierCurve:getControlPointCount

BezierCurve:getControlPointCount Available since LÖVE 0.9.0 This function is not supported in earlier versions. Get the number of control points in the Bézier curve. Function Synopsis count = BezierCurve:getControlPointCount( ) Arguments None. Returns number count The number of control points. See Also BezierCurve BezierCurve:getControlPoint BezierCurve:setControlPoint BezierCurve:insertControlPoint love.math

BezierCurve:getDegree

BezierCurve:getDegree Available since LÖVE 0.9.0 This function is not supported in earlier versions. Get degree of the Bézier curve. The degree is equal to number-of-control-points - 1. Function Synopsis degree = BezierCurve:getDegree( ) Arguments None. Returns number degree Degree of the Bézier curve. See Also BezierCurve BezierCurve:getControlPoint BezierCurve:setControlPoint BezierCurve:insertControlPoint love.math

BezierCurve:getDerivative

BezierCurve:getDerivative Available since LÖVE 0.9.0 This function is not supported in earlier versions. Get the derivative of the Bézier curve. This function can be used to rotate sprites moving along a curve in the direction of the movement and compute the direction perpendicular to the curve at some parameter t. Function Synopsis derivative = BezierCurve:getDerivative() Arguments None. Returns BezierCurve derivative The derivative curve. See Also BezierCurve love.math

BezierCurve:getSegment

BezierCurve:getSegment Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets a BezierCurve that corresponds to the specified segment of this BezierCurve. Function Synopsis curve = BezierCurve:getSegment( startpoint, endpoint ) Arguments number startpoint The starting point along the curve. Must be between 0 and 1. number endpoint The end of the segment. Must be between 0 and 1. Returns BezierCurve curve A BezierCurve that corresponds to the specified seg

BezierCurve:insertControlPoint

BezierCurve:insertControlPoint Available since LÖVE 0.9.0 This function is not supported in earlier versions. Insert control point after the i-th control point. Indices start with 1. Negative indices wrap around: -1 is the last control point, -2 the one before the last, etc. Function Synopsis BezierCurve:insertControlPoint(x, y, i) Arguments number x Position of the control point along the x axis. number y Position of the control point along the y axis. number i (-1) Index of the contro