• Set the density of the Snowflakes. This is the number of snowflakes on screen at a resolution of 1280 x 1080, but this number is scaled up and down at higher and lower resolutions respectively to give a consistent look when resizing.

    Setting this restarts the simulation.

    Parameters

    • density: number

      A number representing the density of snowflakes.

    • layer: number

      The layer to set the density for

    Returns void