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

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

(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

(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):setFilter

(Image):setFilter Sets the filter mode for an image. Function Synopsis Image:setFilter( min, mag ) Arguments FilterMode min How to scale an image down. FilterMode mag How to scale an image up. Returns Nothing. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis Image:setFilter( min, mag, anisotropy ) Arguments FilterMode min How to scale an image down. FilterMode mag How to scale an image up. number anisotropy (1) Maximum amount of anisot

(Image):isCompressed

(Image):isCompressed Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets whether the Image was created from CompressedData. Compressed images take up less space in VRAM, and drawing a compressed image will generally be more efficient than drawing one created from raw pixel data. Function Synopsis compressed = Image:isCompressed( ) Arguments None. Returns boolean compressed Whether the Image is stored as a compressed texture on the GPU. See Also Image

(Image):refresh

(Image):refresh Available since LÖVE 0.9.0 This function is not supported in earlier versions. Reloads the Image's contents from the ImageData or CompressedData used to create the image. Function Synopsis Image:refresh( ) Arguments None. Returns Nothing. Function Available since LÖVE 0.10.0 This variant is not supported in earlier versions. Synopsis Image:refresh( x, y, width, height ) Arguments number x The x-axis of the top-left corner of the area within the Image to reload. numbe

(Image):getMipmapFilter

(Image):getMipmapFilter Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the mipmap filter mode for an Image. Function Synopsis mode, sharpness = Image:getMipmapFilter( ) Arguments None. Returns FilterMode mode The filter mode used in between mipmap levels. nil if mipmap filtering is not enabled. number sharpness Value used to determine whether the image should use more or less detailed mipmap levels than normal when drawing. See Also Image Image:

(Image):getWrap

(Image):getWrap Gets the wrapping properties of an Image. This function returns the currently set horizontal and vertical wrapping modes for the image. Function Synopsis horiz, vert = Image:getWrap( ) Arguments None. Returns WrapMode horiz Horizontal wrapping mode of the image. WrapMode vert Vertical wrapping mode of the image. See Also Image WrapMode