Global

Members

flakes

An array that will hold all of the snowflake objects.
Source:

frosty

The variable that holds the snowman object
Source:

gravity

The acceleration due to gravity for the snowflakes.
Source:

maxFlakeSize

The maximum size that a snowflake can be.
Source:

minFlakeSize

The minimum size that a snowflake can be
Source:

noiseOff

The noise offset for the wind forces.
Source:

numFlakes

The number of snowflakes that will be instantiated
Source:

windMag

The maximum magnitude of the wind vector forces.
Source:

Methods

draw()

p5.js draw function, used to draw frosty the snowman and controls the physics for the snowflakes.
Source:

setup()

p5.js setup function, used to create a canvas and instantiate the snowman object as well as the snowflakes.
Source:

Documentation generated by JSDoc 3.6.3 on Sat Jun 11 2022 20:52:08 GMT+0100 (BST)