UNPKG

@tsparticles/path-simplex-noise

Version:

tsParticles simplex noise path

20 lines (19 loc) 642 B
import { type Container, type IMovePathGenerator, type Particle, Vector } from "@tsparticles/engine"; import type { ISimplexOptions } from "./ISimplexOptions.js"; export declare class SimplexNoiseGenerator implements IMovePathGenerator { container?: Container; field: Vector[][][]; noiseW: number; readonly options: ISimplexOptions; private readonly _simplex; constructor(); generate(particle: Particle): Vector; init(container: Container): void; reset(): void; update(): void; private _calculateField; private _drawField; private _initField; private _resetField; private _setup; }