1 | import { AlterType } from "../Enums/Types/AlterType";
|
2 | import type { Container } from "../Core/Container";
|
3 | import type { IContainerPlugin } from "../Core/Interfaces/IContainerPlugin";
|
4 | import type { ICoordinates } from "../Core/Interfaces/ICoordinates";
|
5 | import type { IDelta } from "../Core/Interfaces/IDelta";
|
6 | import type { IDimension } from "../Core/Interfaces/IDimension";
|
7 | import type { IHsl } from "../Core/Interfaces/Colors";
|
8 | import type { IParticleColorStyle } from "../Core/Interfaces/IParticleColorStyle";
|
9 | import type { IParticleTransformValues } from "../Core/Interfaces/IParticleTransformValues";
|
10 | import type { IShadow } from "../Options/Interfaces/Particles/IShadow";
|
11 | import type { Particle } from "../Core/Particle";
|
12 | export declare function drawLine(context: CanvasRenderingContext2D, begin: ICoordinates, end: ICoordinates): void;
|
13 | export declare function drawTriangle(context: CanvasRenderingContext2D, p1: ICoordinates, p2: ICoordinates, p3: ICoordinates): void;
|
14 | export declare function paintBase(context: CanvasRenderingContext2D, dimension: IDimension, baseColor?: string): void;
|
15 | export declare function paintImage(context: CanvasRenderingContext2D, dimension: IDimension, image: HTMLImageElement | undefined, opacity: number): void;
|
16 | export declare function clear(context: CanvasRenderingContext2D, dimension: IDimension): void;
|
17 | interface DrawParticleParams {
|
18 | backgroundMask: boolean;
|
19 | colorStyles: IParticleColorStyle;
|
20 | composite: GlobalCompositeOperation;
|
21 | container: Container;
|
22 | context: CanvasRenderingContext2D;
|
23 | delta: IDelta;
|
24 | opacity: number;
|
25 | particle: Particle;
|
26 | radius: number;
|
27 | shadow: IShadow;
|
28 | transform: IParticleTransformValues;
|
29 | }
|
30 | export declare function drawParticle(data: DrawParticleParams): void;
|
31 | export declare function drawShape(container: Container, context: CanvasRenderingContext2D, particle: Particle, radius: number, opacity: number, delta: IDelta): void;
|
32 | export declare function drawShapeAfterEffect(container: Container, context: CanvasRenderingContext2D, particle: Particle, radius: number, opacity: number, delta: IDelta): void;
|
33 | export declare function drawPlugin(context: CanvasRenderingContext2D, plugin: IContainerPlugin, delta: IDelta): void;
|
34 | export declare function drawParticlePlugin(context: CanvasRenderingContext2D, plugin: IContainerPlugin, particle: Particle, delta: IDelta): void;
|
35 | export declare function alterHsl(color: IHsl, type: AlterType, value: number): IHsl;
|
36 | export {};
|