@flodlc/nebula
Version:
Including configurable Stars, Nebulas, Comets, Planets and Suns. Nebula comes with a vanilla JS and a React wrapper. Compatible with SSR
26 lines (25 loc) • 707 B
TypeScript
import { SystemConfig } from "./types";
export declare const DEFAULT_CONFIG: {
starsCount: number;
starsColor: string;
starsRotationSpeed: number;
cometFrequence: number;
nebulasIntensity: number;
bgColor: string;
sunScale: number;
planetsScale: number;
solarSystemOrbite: number;
solarSystemSpeedOrbit: number;
};
export declare const fillConfig: (config: SystemConfig) => {
starsCount: number;
starsColor: string;
starsRotationSpeed: number;
cometFrequence: number;
nebulasIntensity: number;
bgColor: string;
sunScale: number;
planetsScale: number;
solarSystemOrbite: number;
solarSystemSpeedOrbit: number;
} & SystemConfig;