Sprite.dup

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

class Sprite
@property
dup
const
(
)

Return Value

Type: Sprite

A new Sprite object with the same data.

Meta