Home > @visualization-tools/core > SpriteLookup
Store for sprite positions.
Signature:
export declare abstract class SpriteLookup
| Property | Modifiers | Type | Description |
|---|---|---|---|
| length | number | The number of sprites multiplied by 4 (x, y, w, h). |
| Method | Modifiers | Description |
|---|---|---|
| createOne(imageCount) | static |
|
| getHeightAtIndex(this, sprite, imageIndex) | static |
|
| getWidthAtIndex(this, sprite, imageIndex) | static |
|
| getXAtIndex(this, sprite, imageIndex) | static |
|
| getYAtIndex(this, sprite, imageIndex) | static |
|
| setSpriteAtIndex(this, sprite, index, x, y, width, height) | static |
|
| toTypedArray(lookup) | static |