This is the greatest addon to your website since the first π have graced the earth.
It is easy!
- Grab
π.js
and embed it:<script src="π.js"></script>
- Grab
π.css
and add it your existing CSS or embed it as a separate file:<link rel="stylesheet" href="π.css">
- Make sure to also upload the bombus folder with the images. Set a custom path to it with
bombus.path = 'folder/with/your/bombus/'
- Call
bombus.summer()
to spawn all those lovely π
See example.html
for a full example.
- Set
bombus.path = 'folder/with/your/bombus/'
to set the path to the bombus folder. Don't forget the trailing slash! Default isbombus/
- Set
bombus.extension = 'svg'
to overwrite the file type to svg (costly animation! not recommended!). Default ispng
- Call
bombus.summer(10)
to spawn exactly 10 π. Call it again and again until your browser crashes. Definitely worth it! - Call
bombus.winter()
to remove all the cute little π. YOU ****ING MURDERER! - Call
bombus.bps(120)
to set the update rate of the π to 120. (bps stands for π per second). You are limited by the current monitors freshrate tho. Default is 60bps