Tsparticles: Configuration for Multiple Colours

Created on 9 May 2020  路  2Comments  路  Source: matteobruni/tsparticles

Is it possible to configure so that there are multiple different colours for particles?
For example red, green, blue particles all interacting/colliding in the same environment.

I looked at the presets in the example page and could not find a configuration that suggests this is possible.

Most helpful comment

Great thanks! Might be worth to add as a preset example showing array of color for easier discovery.

All 2 comments

Yes it鈥檚 possible, the color value can be an array too.

This sample uses this behavior: https://codepen.io/matteobruni/pen/MWaePMa

If you want to see more pens I maintain a collection too: https://codepen.io/collection/DPOage

Great thanks! Might be worth to add as a preset example showing array of color for easier discovery.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matteobruni picture matteobruni  路  4Comments

jeffgoh picture jeffgoh  路  4Comments

matteobruni picture matteobruni  路  5Comments

ecrookoh picture ecrookoh  路  3Comments

matteobruni picture matteobruni  路  4Comments