UNPKG

@flodlc/nebula

Version:

Including configurable Stars, Nebulas, Comets, Planets and Suns. Nebula comes with a vanilla JS and a React wrapper. Compatible with SSR

22 lines (21 loc) 504 B
import { Drawable } from "./Drawable"; declare type Coloration = { coords: { x: number; y: number; }; rgb: [number, number, number]; width: number; ratio: number; }; export declare class NebulaColoration extends Drawable { intensity: number; colorations: Coloration[]; constructor({ ctx, intensity, }: { ctx: CanvasRenderingContext2D; intensity: number; }); setIntensity(intensity: number): void; draw: () => void; } export {};