Lollyde / personal-website

0 stars 0 forks source link

improve particles.js performance #7

Open Lollyde opened 4 years ago

Lollyde commented 4 years ago

possibly using rasterization to avoid looping through all particles when drawing connected lines

matteobruni commented 4 years ago

You can try https://github.com/matteobruni/tsparticles instead of Particles.js, it uses QuadTree for queries

Lollyde commented 4 years ago

@matteobruni thanks for the suggestion!

Does it support differently coloured sections? (I.e. for colouring flags)

matteobruni commented 4 years ago

It's a feature under development right now. It will be based on divs for simpler configuration.

If you need a simple flag (horizontal or vertical stripes) you can create something like this for now (1.15.1 supports this configuration): https://codepen.io/matteobruni/pen/MWKKOQN

matteobruni commented 4 years ago

I finished an alpha version of the different color by div here: https://codepen.io/matteobruni/pen/ExPPLym

matteobruni commented 4 years ago

I forgot, I released 1.16.1 with the div feature