tsparticles
Version:
Porting of the abandoned Vincent Garreau's particles.js, converted in TypeScript. Added many new cool features and various bug fixes.
8 lines (7 loc) • 370 B
TypeScript
import type { Particle } from "../Particle";
import type { IShapeDrawer } from "../../Interfaces/IShapeDrawer";
export declare class ShapeUtils {
private static readonly drawers;
static addShapeDrawer(type: string, drawer: IShapeDrawer): void;
static drawShape(context: CanvasRenderingContext2D, particle: Particle, radius: number, opacity: number): void;
}