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.

22 lines (21 loc) 646 B
import { IColor } from "./Colors"; import { GradientType, RotateDirectionAlt } from "../../Enums"; import { RotateDirection } from "../../Enums"; import { RangeValue } from "../../Types"; export interface IGradientColorOpacity { value: RangeValue; } export interface IGradientColor { value: IColor; stop: number; opacity?: IGradientColorOpacity | number; } export interface IGradientAngle { value: number; direction: RotateDirection | keyof typeof RotateDirection | RotateDirectionAlt; } export interface IGradient { angle?: IGradientAngle; type: GradientType; colors: IGradientColor[]; }