love.graphics.present

love.graphics.present Displays the results of drawing operations on the screen. This function is used when writing your own love.run function. It presents all the results of your drawing operations on the screen. See the example in love.run for a typical use of this function. Function Synopsis love.graphics.present( ) Arguments None. Returns Nothing. Notes If love.window.setMode has vsync equal to true, this function can't run more frequently than the refresh rate (e.g. 60 Hz), and will ha

love.graphics.print

love.graphics.print Draws text on screen. If no Font is set, one will be created and set (once) if needed. As of LOVE 0.7.1, when using translation and scaling functions while drawing text, this function assumes the scale occurs first. If you don't script with this in mind, the text won't be in the right position, or possibly even on screen. love.graphics.print and love.graphics.printf both suppport UTF-8 encoding. You'll also need a proper Font for special characters. Function Synopsis love

love.graphics.printf

love.graphics.printf Draws formatted text, with word wrap and alignment. See additional notes in love.graphics.print. In version 0.9.2 and earlier, wrapping was implemented by breaking up words by spaces and putting them back together to make sure things fit nicely within the limit provided. However, due to the way this is done, extra spaces between words would end up missing when printed on the screen, and some lines could overflow past the provided wrap limit. In version 0.10.0 and newer th

love.graphics.push

love.graphics.push Copies and pushes the current coordinate transformation to the transformation stack. This function is always used to prepare for a corresponding pop operation later. It stores the current coordinate transformation state into the transformation stack and keeps it active. Later changes to the transformation can be undone by using the pop operation, which returns the coordinate transform to the state it was in before calling push. Function Pushes the current transformation to

love.graphics.quad

love.graphics.quad Removed in LÖVE 0.9.0 This function is not supported in that and later versions. Use love.graphics.polygon instead. Draws a quadrilateral shape. Function Synopsis love.graphics.quad( mode, x1, y1, x2, y2, x3, y3, x4, y4 ) Arguments DrawMode mode How to draw the quad. number x1 The position of the top left corner along x-axis. number y1 The position of the top left corner along y-axis. number x2 The position of the top right corner along x-axis. number y2 The positio

love.graphics.rectangle

love.graphics.rectangle Draws a rectangle. Function Synopsis love.graphics.rectangle( mode, x, y, width, height ) Arguments DrawMode mode How to draw the rectangle. number x The position of top-left corner along the x-axis. number y The position of top-left corner along the y-axis. number width Width of the rectangle. number height Height of the rectangle. Returns Nothing. Function Available since LÖVE 0.10.0 This variant is not supported in earlier versions. Draws a rectangle with

love.graphics.reset

love.graphics.reset Resets the current graphics settings. Calling reset makes the current drawing color white, the current background color black, disables any active Canvas or Shader, and removes any scissor settings. It sets the BlendMode to alpha, enables all color component masks, disables wireframe mode and resets the current graphics transformation to the origin. It also sets both the point and line drawing modes to smooth and their sizes to 1.0. Function Synopsis love.graphics.reset( )

love.graphics.rotate

love.graphics.rotate Rotates the coordinate system in two dimensions. Calling this function affects all future drawing operations by rotating the coordinate system around the origin by the given amount of radians. This change lasts until love.draw() exits. Function Synopsis love.graphics.rotate( angle ) Arguments number angle The amount to rotate the coordinate system in radians. Returns Nothing. Examples Rotating a static scene This example shows how to rotate a static scene around a giv

love.graphics.scale

love.graphics.scale Scales the coordinate system in two dimensions. By default the coordinate system in LÖVE corresponds to the display pixels in horizontal and vertical directions one-to-one, and the x-axis increases towards the right while the y-axis increases downwards. Scaling the coordinate system changes this relation. After scaling by sx and sy, all coordinates are treated as if they were multiplied by sx and sy. Every result of a drawing operation is also correspondingly scaled, so sc

love.graphics.setBackgroundColor

love.graphics.setBackgroundColor Sets the background color. Function Synopsis love.graphics.setBackgroundColor( red, green, blue ) Arguments number red The red component (0-255). number green The green component (0-255). number blue The blue component (0-255). Returns Nothing. Function Available since LÖVE 0.8.0 This variant is not supported in earlier versions. Synopsis love.graphics.setBackgroundColor( red, green, blue, alpha ) Arguments number red The red component (0-255). numbe