You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`changeFrequency`| The frequency in frames that the wind and speed values will update. |`200`|
65
+
|`color`| The color of the snowflake, can be any valid CSS color. |`'#dee4fd'`|
66
+
|`images`| An array of images that will be rendered as the snowflakes instead of the default circle shapes. |`undefined`|
67
+
|`radius`| The minimum and maximum radius of the snowflake in pixels.<br/><br/>The value for each snowflake will be randomly selected within this range. |`[0.5, 3.0]`|
68
+
|`rotationSpeed`| The minimum and maximum rotation speed of the snowflake (in degrees of rotation per frame).<br/><br/>The rotation speed determines how quickly the snowflake rotates when an image is being rendered.<br/><br/>The value for each snowflake will be randomly selected within this range. |`[-1.0, 1.0]`|
69
+
|`snowflakeCount`| The number of snowflakes to be rendered. |`150`|
70
+
|`speed`| The minimum and maximum speed of the snowflake (in pixels per frame).<br/><br/>The speed determines how quickly the snowflake moves along the y axis (vertical speed).<br/><br/>The value for each snowflake will be randomly selected within this range. |`[1.0, 3.0]`|
71
+
|`style`| Any style properties that will be passed to the canvas element. |`undefined`|
72
+
|`wind`| The minimum and maximum wind of the snowflake (in pixels per frame).<br/><br/>The wind determines how quickly the snowflake moves along the x axis (horizontal speed).<br/><br/>The value for each snowflake will be randomly selected within this range. |`[-0.5, 2.0]`|
73
+
60
74
## Using Images
61
75
62
76
Instead of rendering colored circles you can instead pass in an array of image elements
0 commit comments