VFX-JS
    Preparing search index...

    Type Alias VoronoiParams

    type VoronoiParams = {
        bgColor: string;
        breathe: number;
        breatheScale: number;
        breatheSpeed: number;
        cellSize: number;
        flatCells: boolean;
        press: number;
        pressRadius: number;
        seed: number;
        speed: number;
    }
    Index

    Properties

    bgColor: string

    Hex fill for shrunk-cell gaps. #rgb, #rgba, #rrggbb, or
    #rrggbbaa; alpha defaults to ff. Default #00000000.

    breathe: number

    Noise-driven shrink for cells outside mouse falloff, in [0, 1].

    breatheScale: number

    Spatial scale of breathe noise, in physical px.

    breatheSpeed: number

    Animation rate of breathe. 0 = static.

    cellSize: number

    Cell pitch in physical px.

    flatCells: boolean

    Sample at the cell's site only — mosaic / stained-glass look.

    press: number

    Mouse-driven shrink, as a fraction of the cell half-width.
    0 = no shrink, 1 = the cell collapses to its site.

    pressRadius: number

    Distance from mouse at which press fades to 0, in physical px.

    seed: number

    Hash seed; change for a different cell layout.

    speed: number

    Animation rate, rad/sec. 0 = static.