love.graphics.newCanvas

love.graphics.newCanvas Available since LÖVE 0.8.0 It has been renamed from love.graphics.newFramebuffer. Creates a new Canvas object for offscreen rendering. 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 canvas = love.graphics.newCanvas( ) Arguments None. Returns Canvas canvas A new Canvas with dimensions equal to the win

love.graphics.newFont

love.graphics.newFont Creates a new Font. Created fonts are not cached, in that calling this function with the same arguments will always create a new Font object. 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 font = love.graphics.newFont( filename, size ) Arguments string filename The filepath to the font file. number size (12

love.graphics.newFramebuffer

love.graphics.newFramebuffer Available since LÖVE 0.7.0 and removed in LÖVE 0.8.0 It has been renamed to love.graphics.newCanvas. Creates a new framebuffer object for offscreen rendering. Versions prior to 0.8.0 have Framebuffers that are susceptible to power of 2 syndrome. 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 fram

love.graphics.newImage

love.graphics.newImage Creates a new Image from a filepath, FileData, an ImageData, or a CompressedImageData, and optionally generates or specifies mipmaps for the image. 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 image = love.graphics.newImage( filename ) Arguments string filename The filepath to the image file. Returns I

love.graphics.newImageFont

love.graphics.newImageFont Creates a new Font by loading a specifically formatted image. In versions prior to 0.9.0, LÖVE expects ISO 8859-1 encoding for the glyphs string. 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 font = love.graphics.newImageFont( filename, glyphs ) Arguments string filename The filepath to the image fi

love.graphics.newMesh

love.graphics.newMesh Available since LÖVE 0.9.0 This function is not supported in earlier versions. Creates a new Mesh. Use Mesh:setTexture if the Mesh should be textured with an Image or Canvas when it's drawn. 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 Available since LÖVE 0.10.0 This variant is not supported in earlier ve

love.graphics.newParticleSystem

love.graphics.newParticleSystem Creates a new ParticleSystem. 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 system = love.graphics.newParticleSystem( image, buffer ) Arguments Image image The image to use. number buffer The max number of particles at the same time. Returns ParticleSystem system A new ParticleSystem. Funct

love.graphics.newPixelEffect

love.graphics.newPixelEffect Available since LÖVE 0.8.0 and removed in LÖVE 0.9.0 It has been renamed to love.graphics.newShader. Creates a new PixelEffect object for hardware-accelerated pixel level effects. A PixelEffect contains at least one function, named effect, which is the effect itself, but it can contain additional functions. Function Synopsis pixeleffect = love.graphics.newPixelEffect( code ) Arguments string code The pixel effect code. Returns PixelEffect pixeleffect A Pix

love.graphics.newQuad

love.graphics.newQuad Creates a new Quad. 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 quad = love.graphics.newQuad( x, y, width, height, sw, sh ) Arguments number x The top-left position in the Image along the x-axis. number y The top-left position in the Image along the y-axis. number width The width of the Quad in the Ima

love.graphics.newScreenshot

love.graphics.newScreenshot Creates a screenshot and returns the image data. 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 screenshot = love.graphics.newScreenshot( ) Arguments None. Returns ImageData screenshot The image data of the screenshot. Function Available since LÖVE 0.9.0 This variant is not supported in earlier