Skip to main content

Class: Sprite

Defined in: rendering/sprite.ts:40

The Sprite class represents a sprite in the rendering system.

Constructors

Constructor

new Sprite(options): Sprite

Defined in: rendering/sprite.ts:63

Constructs a new instance of the Sprite class.

Parameters

options

SpriteOptions

The options for creating the sprite.

Returns

Sprite

Properties

bleed

bleed: number

Defined in: rendering/sprite.ts:42

The bleed value applied to the sprite.


height

height: number

Defined in: rendering/sprite.ts:48

The height of the sprite, including the bleed value.


pivot

pivot: Vector2

Defined in: rendering/sprite.ts:51

The pivot point of the sprite.


renderable

readonly renderable: Renderable

Defined in: rendering/sprite.ts:57

The renderable associated with the sprite.


tintColor

tintColor: Color

Defined in: rendering/sprite.ts:54

The tint color of the sprite.


width

width: number

Defined in: rendering/sprite.ts:45

The width of the sprite, including the bleed value.