UNPKG

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.

26 lines (25 loc) 797 B
import { IHsl, IParticle } from "../../Core/Interfaces"; export interface IImage { source: string; type: string; element?: HTMLImageElement; svgData?: string; } export interface IParticleImage { source: string; data: IImage; ratio: number; element?: HTMLImageElement; loaded?: boolean; replaceColor: boolean; } export interface ContainerImage { id: string; images: IImage[]; } export declare type IImageParticle = IParticle & { image: IParticleImage; }; export declare function loadImage(source: string): Promise<IImage | undefined>; export declare function downloadSvgImage(source: string): Promise<IImage | undefined>; export declare function replaceColorSvg(imageShape: IImage, color: IHsl, opacity: number): string;