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

11 lines (10 loc) 365 B
import { Sun } from "../astres/Sun"; import { Planet } from "../astres/Planet"; export declare const generateSolarSytem: ({ planets, sunScale, scale, rotationSpeed, distance, ctx, }: { planets: (Planet | Sun)[]; sunScale: number; scale: number; rotationSpeed: number; distance: number; ctx: CanvasRenderingContext2D; }) => (Sun | Planet)[];