Skip to content

ShapeSize

ShapeSize = number | [number, number]

Defined in: particles/src/shapes.ts:23

The generated texture’s size in pixels: one value for a square, or an explicit width and height. At the default scale: 1 this is also the size a particle covers on screen. Every distinct size generates and caches its own texture, so keep to a few and vary per-particle size with scale.

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/particles.md.