Interface ImageLayerConfig

interface ImageLayerConfig {
    density: number;
    gravity: Gravity;
    image: string;
    mass: SizeBounds;
    mode: "image";
    opacity: SizeBounds;
    rotate: boolean;
    size: SizeBounds;
    sway: Sway;
    wind: Wind;
}

Hierarchy

  • BaseLayerConfig
    • ImageLayerConfig

Properties

density: number

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

200
gravity: Gravity
image: string

An image to render

The size of the snowflakes.

{ min: 1, max: 3 }
mode
opacity: SizeBounds
rotate: boolean

Should the snow rotate, or not?

false
sway: Sway
wind: Wind