Difference between revisions of "WrapMode"

m (Added mirroredrepeat constant)
m
Line 6: Line 6:
 
;repeat: Repeat the image. Fills the whole available extent.
 
;repeat: Repeat the image. Fills the whole available extent.
 
{{newin|[[0.9.2]]|092|type=constant}}
 
{{newin|[[0.9.2]]|092|type=constant}}
;mirroredrepeat: Repeat the image, flipping it each time it repeats. May produce better visual results when tiling an image that doesn't seamlessly tile, compared to the <code>repeat</code> mode.
+
;mirroredrepeat: Repeat the image, flipping it each time it repeats. May produce better visual results than the <code>repeat</code> mode when tiling an image that doesn't seamlessly tile.
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]

Revision as of 01:10, 9 February 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.

ComparisonWraps.png

Constants

clamp
Clamp the image. Appears only once.
repeat
Repeat the image. Fills the whole available extent.
Available since LÖVE 0.9.2
This constant is not supported in earlier versions.
mirroredrepeat
Repeat the image, flipping it each time it repeats. May produce better visual results than the repeat mode when tiling an image that doesn't seamlessly tile.

See Also


Other Languages