UNPKG

@osbjs/osbjs

Version:

a minimalist osu! storyboarding framework

38 lines (37 loc) 1.23 kB
import { Component, Easing, Origin, OsbColor, OsbVector2 } from '../Core'; import { IParticlesOptions } from './Interfaces'; export declare class Particles extends Component { path: string; startTime: number; endTime: number; options: { duration: number; amount: number; startPosition: OsbVector2; endPosition: OsbVector2; axis: string; easing: Easing; randomEasing: boolean; fadeInDuration: number; fadeOutDuration: number; color: OsbColor; startScale: number; endScale: number; randomScale: boolean; startRotation: number; endRotation: number; randomRotation: boolean; origin: Origin; additive: boolean; opacity: number; }; /** * * @param path Path to the image * @param startTime times in milliseconds/timestamp indicate when the effect starts. * @param endTime times in milliseconds/timestamp indicate when the effect ends. * @param options Additional options. */ constructor(path: string, startTime: number, endTime: number, options?: IParticlesOptions); generate(): void; }