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

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