Difference between revisions of "love.graphics.quad"
m (changed instances of "draws a quad" to "draws a quadrilateral" to be less confusing) |
m (Fixed spelling error.) |
||
Line 18: | Line 18: | ||
Nothing. | Nothing. | ||
== Examples == | == Examples == | ||
− | === A quadrilateral that has its top left corner located at 0,0 and | + | === A quadrilateral that has its top left corner located at 0,0 and whose width and height are 100 pixels. === |
<source lang="lua"> | <source lang="lua"> | ||
function love.draw() | function love.draw() |
Revision as of 01:31, 7 March 2011
Draws a quadrilateral shape.
Contents
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 position of the top right corner along y-axis.
number x3
- The position of the bottom right corner along x-axis.
number y3
- The position of the bottom right corner along y-axis.
number x4
- The position of the bottom left corner along x-axis.
number y4
- The position of the bottom left corner along y-axis.
Returns
Nothing.
Examples
A quadrilateral that has its top left corner located at 0,0 and whose width and height are 100 pixels.
function love.draw()
love.graphics.quad("fill", 0, 0, 100, 0, 100, 100, 0, 100)
end
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info