Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Bug: using CSS color names with connectParticles breaks the animation #36

Open
dash0r opened this issue Dec 30, 2018 · 0 comments
Open
Milestone

Comments

@dash0r
Copy link

dash0r commented Dec 30, 2018

Hello,

You might want to look into this. If you define a color array (or string) with CSS color names (eg: seagreen, blue, yellow, red, etc.), and enable connectParticles, the animation fails.
Particles.init({
selector: "#particles",
color: ["seagreen", "yellow", "blue"], // this will fail
connectParticles: true // if this is set to true (it works fine if set to false)
});

It has to do with hextorgb (which doesn't understand color names). Might want to look into fixing this or documenting it!

@marcbruederlin marcbruederlin added this to the 3.x.x milestone Dec 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants