Optional Readonlyfps?: RangePlayback Speed in Frames per Second.
Readonlyframes: SpriteFramesFrame Layout.
Optional Readonlyloop?: booleanLoop Playback.
When false, the animation holds its last frame.
Optional ReadonlyrandomStartFrame?: booleanRandom Start Frame. Desynchronizes particles so they don't all animate in lockstep.
Optional Readonlysize?: Range<Pixels>Rendered Frame Width.
Readonlysrc: ImageInputSpritesheet Image.
A URL, any canvas image source, or inline <svg> markup (give the <svg> a width and height).
Optional Readonlytint?: boolean | TintModeTint.
Recolors the sheet with the particle colors (colors, inherited from paper.colors when the entry sets none):
every particle picks a color the way a paper piece does and draws a copy of the sheet in that color. true is
"multiply" (keeps the shading, so white or grey artwork takes the colors best); "fill" gives flat silhouettes.
shapes: [{ type: "spritesheet", src: "/coin-white.png", frames: { cols: 8, rows: 1 }, tint: true, colors: ["#ffd700", "#ff5e7e"] }]
shapes: [{ type: "spritesheet", src: "/logo.png", frames: { cols: 8, rows: 1 }, tint: "fill" }] // silhouettes in the paper colors
Each color is painted once per sheet when it has loaded (at its own size, so the frames stay in place); drawing costs the same as without a tint.
Readonlytype: "spritesheet"Shape Type.
Animated Spritesheet Shape Entry. Plays frames from one image, e.g. a spinning coin.
sizeis the rendered frame width.