Members
flakes
An array that will hold all of the snowflake objects.
frosty
The variable that holds the snowman object
gravity
The acceleration due to gravity for the snowflakes.
maxFlakeSize
The maximum size that a snowflake can be.
minFlakeSize
The minimum size that a snowflake can be
noiseOff
The noise offset for the wind forces.
numFlakes
The number of snowflakes that will be instantiated
windMag
The maximum magnitude of the wind vector forces.
Methods
draw()
p5.js draw function, used to draw frosty the snowman and controls the physics
for the snowflakes.
setup()
p5.js setup function, used to create a canvas and instantiate the snowman
object as well as the snowflakes.