Skip to content

Nebula API

Nebula

Extends Effect.

Factory Function

typescript
createNebula(config?: NebulaConfig): Effect<NebulaConfig>

Methods

See Effect for the full method reference.


NebulaConfig

typescript
interface NebulaConfig {
    readonly starCount?: number;
    readonly speed?: number;
    readonly colors?: string[];
    readonly scale?: number;
}
PropertyTypeDefaultDescription
starCountnumber150Number of twinkling stars.
speednumber0.3Drift speed of the nebula clouds.
colorsstring[]['#ff6b9d', '#c44dff', '#4d79ff', '#00d4ff']Colors used for the nebula blobs.
scalenumber1Uniform scale multiplier.