Skip to content

Particle Data Sprite ​

Particle data sprite is used by Sonolus app to drive a particle sprite's rendering.

Syntax ​

ts
type ParticleDataSprite = {
    x: number
    y: number
    w: number
    h: number
}

x ​

Sprite's x coordinate within particle texture.

y ​

Sprite's y coordinate within particle texture.

w ​

Sprite's width.

h ​

Sprite's height.

Examples ​

json
{
    "x": 0,
    "y": 0,
    "w": 64,
    "h": 64
}