A background texture that can be repeated horizontally and vertically when drawn. Really useful for parallax backgrounds, textures, etc.
Constructor
View source
Parameters:
new (source : ImageType, repeatX : Bool = true, repeatY : Bool = true) : Void
Constructor.
Parameters:
source | Source texture. | |
repeatX | Repeat horizontally. | |
repeatY | Repeat vertically. |
Variables
Functions
View source
centerOrigin () : Void
Centers the origin of this Backdrop based on the dimensions of it's graphic.