wufe / react-particles-js

Particles.js for React
https://rpj.bembi.dev/
MIT License
1.16k stars 106 forks source link

options for polygon color #62

Closed daydream05 closed 6 years ago

daydream05 commented 6 years ago

On the polygon example im trying to change the color for the particles. I was able to change it for the particles and line_linked but not for this part.

screen shot 2018-11-07 at 12 48 51 pm

What's the option for changing the color of this? I've looked at the docs and can't seem to find it.

daydream05 commented 6 years ago

This is what it looks like since that part is still white

screen shot 2018-11-07 at 12 53 08 pm
wufe commented 6 years ago

The option you may want to change is polygon.draw.

If you want to disable it:

draw: {
    enable: false
}

If you want to change color:

draw: {
    enable: true,
    stroke: {
        color: 'rgba(0, 0, 0, .1)'
    }
}