Skip to content

Releases: lilgallon/particles.js

Version 1.5

26 Sep 01:46
c3ac573
Compare
Choose a tag to compare

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

16 Jul 16:06
ec26aa5
Compare
Choose a tag to compare

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

01 Mar 10:19
699d3ec
Compare
Choose a tag to compare

Some settings were added. You need to update the settings variable if you used an older version. More information on README.

  • Add #12 : Dynamic particles amount (when resizing the window)
  • Add #13 : Mobile detection (you can disable the script if the user is using a phone)
  • Fix #14 : Particles are not black anymore for users with Microsoft Edge

Version 1.2

03 Feb 10:42
f85c3b4
Compare
Choose a tag to compare
  • Fix #6 : The mouse event now listen to the parent container, and not the canvas
  • Fix #9 : The spawning position automatically adjusts with the new canvas size if the size changed
  • Add : Troubleshoot guide if the canvas is not initially sized correctly

Version 1.1

02 Feb 14:10
9757528
Compare
Choose a tag to compare
  • 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

01 Feb 16:43
0edd29d
Compare
Choose a tag to compare
  • Huge refactoring,
  • Algorithms optimization,
  • Removed JQuery,
  • Improved compatibility,
  • Add ability to customize the particles,
  • Detailed verbose to troubelshoot,
  • Easier to install,
  • Lightweight