erikwatson / snowfall.js

Stay cool ☃️
https://erikwatson.github.io/snowfall.js/
MIT License
4 stars 2 forks source link

No config options available #1

Closed erikwatson closed 5 years ago

erikwatson commented 6 years ago

Something like this would be good I think, and easy enough to add.

const snowfall = require('@erikwatson/snowfall')

snowfall({
  count: 250, // The "base" number of snowflakes, as the true total is calculated 
  bgColor: '#cccccc',  // the colour of the snowflakes in the background
  fgColor: '#e3e3e3',  // the colour of the snowflakes in the foreground 
  wind: 1, // Negative is left blowing, Positive is right blowing 
  minSize: 2, // the smallest snowflake radius 
  maxSize: 6 // the largest snowflake radius 
})
erikwatson commented 5 years ago

Fixed in the new version.