UNPKG

@tsparticles/engine

Version:

Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.

19 lines (18 loc) 1.71 kB
import type { IContainerPlugin } from "../Core/Interfaces/IContainerPlugin.js"; import type { IDelta } from "../Core/Interfaces/IDelta.js"; import type { IDimension } from "../Core/Interfaces/IDimension.js"; import type { IDrawParticleParams } from "../Core/Interfaces/IDrawParticleParams.js"; import type { IEffectDrawer } from "../Core/Interfaces/IEffectDrawer.js"; import type { IShapeDrawData } from "../Core/Interfaces/IShapeDrawData.js"; import type { IShapeDrawer } from "../Core/Interfaces/IShapeDrawer.js"; import type { Particle } from "../Core/Particle.js"; export declare function paintBase(context: OffscreenCanvasRenderingContext2D, dimension: IDimension, baseColor?: string): void; export declare function paintImage(context: OffscreenCanvasRenderingContext2D, dimension: IDimension, image: HTMLImageElement | undefined, opacity: number): void; export declare function clear(context: OffscreenCanvasRenderingContext2D, dimension: IDimension): void; export declare function drawParticle(data: IDrawParticleParams): void; export declare function drawAfterEffect(drawer: IEffectDrawer | undefined, data: IShapeDrawData): void; export declare function drawBeforeEffect(drawer: IEffectDrawer | undefined, data: IShapeDrawData): void; export declare function drawShape(drawer: IShapeDrawer | undefined, data: IShapeDrawData): void; export declare function drawShapeAfterDraw(drawer: IShapeDrawer | undefined, data: IShapeDrawData): void; export declare function drawShapeBeforeDraw(drawer: IShapeDrawer | undefined, data: IShapeDrawData): void; export declare function drawParticlePlugin(context: OffscreenCanvasRenderingContext2D, plugin: IContainerPlugin, particle: Particle, delta: IDelta): void;