Interface SimpleLayerConfig

interface SimpleLayerConfig {
    colour: string;
    density: number;
    gravity: Gravity;
    mass: SizeBounds;
    mode: "simple";
    opacity: SizeBounds;
    size: SizeBounds;
    sway: Sway;
    wind: Wind;
}

Hierarchy

  • BaseLayerConfig
    • SimpleLayerConfig

Properties

colour: string

A hex string representing the colour of the snowflakes in the foreground.

'#8d90b7'
density: number

A number representing the required density of snowflakes on screen. Note, this is not the actual number of snowflakes.

200
gravity: Gravity

The size of the snowflakes.

{ min: 1, max: 3 }
mode
opacity: SizeBounds
sway: Sway
wind: Wind