@tsparticles/path-perlin-noise
Version:
tsParticles perlin noise path
21 lines (20 loc) • 725 B
TypeScript
import { type Container, type IMovePathGenerator, type Particle, Vector } from "@tsparticles/engine";
import type { IPerlinOptions } from "./IPerlinOptions.js";
import { PerlinNoise } from "@tsparticles/perlin-noise";
export declare class PerlinNoiseGenerator implements IMovePathGenerator {
container?: Container;
field: Vector[][];
readonly noiseGen: PerlinNoise;
noiseZ: number;
readonly options: IPerlinOptions;
constructor();
generate(particle: Particle): Vector;
init(container: Container): void;
reset(): void;
update(): void;
private readonly _calculateField;
private readonly _drawField;
private readonly _initField;
private _resetField;
private _setup;
}