tsparticles
Version:
Easily create highly customizable particle 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.
24 lines (23 loc) • 954 B
TypeScript
import type { Container } from "../Container";
import type { Particle } from "../Particle";
import type { IDelta } from "../Interfaces/IDelta";
import { IParticleValueAnimation } from "../Interfaces/IParticleValueAnimation";
import { IColorAnimation } from "../../Options/Interfaces/IColorAnimation";
export declare class Updater {
private readonly container;
private readonly particle;
constructor(container: Container, particle: Particle);
update(delta: IDelta): void;
private updateLife;
private updateOpacity;
private updateSize;
private updateAngle;
private updateColor;
private updateStrokeColor;
updateColorValue(particle: Particle, delta: IDelta, value: IParticleValueAnimation<number>, valueAnimation: IColorAnimation, max: number, decrease: boolean): void;
private updateOutModes;
private updateOutMode;
private fixOutOfCanvasPosition;
private updateBounce;
private bounceNone;
}