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

17 lines (16 loc) 392 B
import { Drawable } from "./Drawable"; export declare class Comet extends Drawable { ctx: CanvasRenderingContext2D; frequence: number; constructor({ ctx, frequence, }: { ctx: CanvasRenderingContext2D; frequence: number; }); private showConfig; private speed; private x; private y; private opacity; private move; draw: () => void; }