Sonolus Wiki

Particle Data Sprite

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

Syntax

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

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