love.graphics.origin

love.graphics.origin Available since LÖVE 0.9.0 This function is not supported in earlier versions. Resets the current coordinate transformation. This function is always used to reverse any previous calls to love.graphics.rotate, love.graphics.scale, love.graphics.shear or love.graphics.translate. It returns the current transformation state to its defaults. Function Synopsis love.graphics.origin() Arguments None Returns Nothing. Example local image = love.graphics.newImage("path_to_your

love.graphics.newVideo

love.graphics.newVideo Available since LÖVE 0.10.0 This function is not supported in earlier versions. Creates a new drawable Video. Currently only Ogg Theora video files are supported. 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 video = love.graphics.newVideo( filename, loadaudio ) Arguments string filename The file path

love.graphics.newText

love.graphics.newText Available since LÖVE 0.10.0 This function is not supported in earlier versions. Creates a new drawable Text 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 text = love.graphics.newText( font, textstring ) Arguments Font font The font to use for the text. string textstring (nil) The initial strin

love.graphics.newStencil

love.graphics.newStencil Available since LÖVE 0.8.0 and removed in LÖVE 0.9.0 Lua functions can be used directly with love.graphics.stencil (or love.graphics.setStencil in 0.9). Creates a new stencil. Function Synopsis myStencil = love.graphics.newStencil( stencilFunction ) Arguments function stencilFunction Function that draws the stencil. Returns function myStencil Function that defines the new stencil. See Also love.graphics love.graphics.setStencil love.graphics.setInvertedS

love.graphics.newSpriteBatch

love.graphics.newSpriteBatch Creates a new SpriteBatch 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 spriteBatch = love.graphics.newSpriteBatch( image, maxsprites ) Arguments Image image The Image to use for the sprites. number maxsprites (1000) The maximum number of sprites that the SpriteBatch can contain at any give

love.graphics.newShader

love.graphics.newShader Available since LÖVE 0.9.0 It has been renamed from love.graphics.newPixelEffect. 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! Creates a new Shader object for hardware-accelerated vertex and pixel effects. A Shader contains either vertex shader code, pixel shader code, or both. Shaders are small programs which are ru

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

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