A quadrilateral (a polygon with four sides and four corners) with texture coordinate information.

Quads can be used to select part of a texture to draw. In this way, one large [http://en.wikipedia.org/wiki/Texture_atlas texture atlas] can be loaded, and then split up into sub-images.

{{notice|Quads 'bleed' when scaled, rotated or drawn at non-integer coordinates, even within [[SpriteBatch|SpriteBatches]], to compensate for this, use 1px borders around the textures inside the texture atlas (preferably with the same colors as the actual border)}}

== Constructors ==
{{#ask: [[Category:Functions]] [[Constructs::Quad]] [[Concept:Current]]
| headers=hide
| default=None.
| format=template
| template=ListingFields
| introtemplate=ListingIntro
| outrotemplate=ListingOutro
| ?Description
| ?PrettySince
| ?PrettyRemoved
}}
== Functions ==
{{#ask: [[Category:Functions]] [[parent::Quad||Object]] [[Concept:Current]]
| headers=hide
| format=template
| template=ListingFields
| introtemplate=ListingIntro
| outrotemplate=ListingOutro
| ?Description
| ?PrettySince
| ?PrettyRemoved
}}
== Supertypes ==
* [[parent::Object]]
== See Also ==
* [[parent::love.graphics]]
[[Category:Types]]
{{#set:Description=A quadrilateral with texture coordinate information.}}
{{#set:Since=000}}
== Other Languages ==
{{i18n|Quad}}