ngx-particlesjs
Version:
[](https://www.npmjs.com/package/ngx-particlesjs) [](https://www.npmjs.com/package/ngx-particlesjs) [ • 510 B
TypeScript
export declare class Particle {
private max_width;
private max_height;
private x;
private y;
private vx;
private vy;
private size;
private color;
constructor(range: number[], speed?: 'fast' | 'normal' | 'slow' | number[], size?: number);
onRange(range: number[]): void;
private initPosition;
private initSpeed;
private initSize;
private initColor;
draw(ctx: CanvasRenderingContext2D): void;
update(): void;
private edge;
}