Fork me on GitHub
View source

package com.haxepunk.graphics

class Backdrop


extends Canvas

A background texture that can be repeated horizontally and vertically when drawn. Really useful for parallax backgrounds, textures, etc.

Constructor

View source

new (source : ImageType, repeatX : Bool = true, repeatY : Bool = true, screenScale : Float = 1.) : Void

Constructor.


Parameters:
source   

Source texture.

repeatX   

Repeat horizontally.

repeatY   

Repeat vertically.

screenScale   

How many screens the backdrop must span (to use with screen scaling)