UNPKG

tsparticles

Version:

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

7 lines (6 loc) 160 B
export class LineDrawer { draw(context, particle, radius, opacity) { context.moveTo(0, -radius / 2); context.lineTo(0, radius / 2); } }