mubaidr / rainyday.js

Simulating raindrops falling on a window
https://mubaidr.github.io/rainyday.js/
GNU General Public License v2.0
114 stars 44 forks source link

Is there any way to increase the amount of Raindrops? #11

Closed lexterror closed 4 years ago

lexterror commented 4 years ago

Hi, I really like this project. I'm using something similar on Android. Here's a vid I recorded a few minutes ago: https://www.youtube.com/watch?v=7YNTKc0SHN0 (the App is called RainPaper) I was wondering if I could increase the number of raindrops to make it look similar to the link I just posted. Btw, I'm using "rainyday.js" as a live wallpaper on Kubuntu with a plugin called "HTML Wallpaper"

Thank you!

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.61. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

mubaidr commented 4 years ago

Yes you can.

// Initialize rainy day
var rainyDay = new RainyDay({image: '#myHeader'})

//collection of engine presets
rainyDay.rain([
  [
    3, //min drop size
    3, //max drop size
    0.88 //delay
  ], 
  [
    5, 
    5, 
    0.9
  ], 
  [
    6, 
    2, 
    1
  ]
]) 

For more information: https://mubaidr.js.org/rainyday.js/#Methods