Sprite.dup

Create a new Sprite with the same data. Note that the texture is not copied, only its reference.

class Sprite
@property const
dup
()

Return Value

Type: Sprite

A new Sprite object with the same data.

Meta