Difference between revisions of "WrapMode"
m |
(→Constants) |
||
Line 3: | Line 3: | ||
[[File:ComparisonWraps.png]] | [[File:ComparisonWraps.png]] | ||
== Constants == | == Constants == | ||
− | ;clamp: Clamp the | + | ;clamp: Clamp the texture. Appears only once. The area outside the texture's normal range is colored based on the edge pixels of the texture. |
− | ;repeat: Repeat the | + | ;repeat: Repeat the texture. Fills the whole available extent. |
{{newin|[[0.9.2]]|092|type=constant}} | {{newin|[[0.9.2]]|092|type=constant}} | ||
− | ;mirroredrepeat: Repeat the | + | ;mirroredrepeat: Repeat the texture, flipping it each time it repeats. May produce better visual results than the <code>repeat</code> mode when the texture doesn't seamlessly tile. |
+ | {{newin|[[0.10.0]]|100|type=constant}} | ||
+ | ;clampzero: Clamp the texture. Fills the area outside the texture's normal range with transparent black (or opaque black for textures with no alpha channel.) | ||
+ | |||
== See Also == | == See Also == | ||
* [[parent::love.graphics]] | * [[parent::love.graphics]] |
Revision as of 00:17, 1 December 2015
How the image wraps inside a large Quad. In 0.9.0 this also affects how Meshes with texture coordinates which are outside the range of [0, 1] are drawn.
Constants
- clamp
- Clamp the texture. Appears only once. The area outside the texture's normal range is colored based on the edge pixels of the texture.
- repeat
- Repeat the texture. Fills the whole available extent.
Available since LÖVE 0.9.2 |
This constant is not supported in earlier versions. |
- mirroredrepeat
- Repeat the texture, flipping it each time it repeats. May produce better visual results than the
repeat
mode when the texture doesn't seamlessly tile.
Available since LÖVE 0.10.0 |
This constant is not supported in earlier versions. |
- clampzero
- Clamp the texture. Fills the area outside the texture's normal range with transparent black (or opaque black for textures with no alpha channel.)
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