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

love.graphics.point Removed in LÖVE 0.10.0 It has been replaced by love.graphics.points. Draws a point. Function Synopsis love.graphics.point( x, y ) Arguments number x The position on the x-axis. number y The position on the y-axis. Returns Nothing. Notes The pixel grid is actually offset to the center of each pixel. So to get clean pixels drawn use 0.5 + integer increments. Points are not affected by love.graphics.scale - their size is always in pixels. Examples Render a starfiel

love.graphics.points

love.graphics.points Available since LÖVE 0.10.0 It has replaced love.graphics.point. Draws one or more points. Function Synopsis love.graphics.points( x, y, ... ) Arguments number x The position of the first point on the x-axis. number y The position of the first point on the y-axis. number ... The x and y coordinates of additional points. Returns Nothing. Function Synopsis love.graphics.points( points ) Arguments table points A table containing multiple point positions, in the for

love.graphics.polygon

love.graphics.polygon Draw a polygon. Following the mode argument, this function can accept multiple numeric arguments or a single table of numeric arguments. In either case the arguments are interpreted as alternating x and y coordinates of the polygon's vertices. When in fill mode, the polygon must be convex and simple or rendering artifacts may occur. love.math.triangulate and love.math.isConvex can be used in 0.9.0+. Function Synopsis love.graphics.polygon( mode, ... ) Arguments DrawMode

love.graphics.pop

love.graphics.pop Pops the current coordinate transformation from the transformation stack. This function is always used to reverse a previous push operation. It returns the current transformation state to what it was before the last preceding push. Function Synopsis love.graphics.pop() Arguments None Returns Nothing. Examples Draw two lines of text, one scaled and one normal, using love.graphics.scale. We use love.graphics.pop to return to normal render scale, after having used love.graphi