UNPKG

tsparticles

Version:

Porting of the abandoned Vincent Garreau's particles.js, converted in TypeScript. Added many new cool features and various bug fixes.

10 lines (9 loc) 575 B
import type { IShapeDrawer } from "../../Interfaces/IShapeDrawer"; import type { ISide } from "../../Interfaces/ISide"; import type { ICoordinates } from "../../Interfaces/ICoordinates"; import type { IParticle } from "../../Interfaces/IParticle"; export declare abstract class PolygonDrawerBase implements IShapeDrawer { draw(context: CanvasRenderingContext2D, particle: IParticle, radius: number, opacity: number): void; abstract getSidesData(particle: IParticle, radius: number): ISide; abstract getCenter(particle: IParticle, radius: number): ICoordinates; }