Releases: lilgallon/particles.js
Releases · lilgallon/particles.js
Version 1.5
This update is backward compatible
- Enhancement #25: Added a security to prevent users from calling start() multiple times
- Fix #23: Cos & sin were inverted in setSpeed and setDirection methods
- Fix #24: Particles are not cut anymore when they bounce with an updated size
- Fix #26: The canvas size is now adjusted correctly if an other unit than "px" is used to define its height and its width
Version 1.4
This update is not backward compatible if you used:
- The method
setMultiplierIn
(it has been removed) - The method
setMultiplierOut
(it has been removed) - Any attribute except
settings
(they are now private)
Otherwise, you don't have to change anything, it will be working.
Changes:
- setMultiplierIn and setMultiplierOut were removed. Now, you can update in real time any setting:
// Retrieve the settings
let settings = particleHandler.settings;
// Update the settings
settings.multiplierIn = 123;
settings.multiplierOut = 456;
// Apply changes
particleHandler.settings = settings;
- All the attributes are now private (except settings)
- Add #16: Ability to change the springs color (thanks @ElRacoon)
- New settings: springColorR, springColorG, springColorB
- Add #18: Ability to change & update settings at any time
- Add #19: Ability to set a min and a max amount of particles (useful when using dynamic amount)
- Fix #20: Some methods needed to be private, now they are private following ECMA6
- Decreased default amount of particles
Version 1.3
Some settings were added. You need to update the settings variable if you used an older version. More information on README.
Version 1.2
Version 1.1
- Fix #5 : The canvas does tear anymore when resizing the window
- Fix #4 : The canvas now fits perfectly the parent container & resizes automatically
- Fix #2 : The default particle amount has been lowered
- Small fix : mouse events are now not added to event list if an error occurred during initialization
Version 1.0
- Huge refactoring,
- Algorithms optimization,
- Removed JQuery,
- Improved compatibility,
- Add ability to customize the particles,
- Detailed verbose to troubelshoot,
- Easier to install,
- Lightweight