Skip to content

Clouds API

Clouds

Extends Effect.

Factory Function

typescript
createClouds(config?: CloudsConfig)

Methods

See Effect for the full method reference.


CloudsConfig

typescript
interface CloudsConfig {
    color?: string;
    count?: number;
    opacity?: number;
    scale?: number;
    speed?: number;
}
PropertyTypeDefaultDescription
colorstring'#ffffff'Base color of the cloud sprites.
countnumber8Number of clouds.
opacitynumber0.8Maximum opacity of clouds (0–1).
scalenumber1Scales all sizes proportionally.
speednumber0.3Drift speed multiplier.