tguerin / newton

An Easy To Use Particle Emitter
https://newton.7omtech.fr
MIT License
22 stars 7 forks source link

No need to have 2 widgets for foreground + background effects #17

Closed tguerin closed 8 months ago

tguerin commented 8 months ago

The foreground property was determined by the presence of a child widget. Make it clearer by adding a foreground property in the effect configuration. Newton can display background + foreground effects.

netlify[bot] commented 8 months ago

Deploy Preview for imaginative-palmier-d7ee2c canceled.

Name Link
Latest commit 7be38d861aad8be1faad060787621d0c844afd55
Latest deploy log https://app.netlify.com/sites/imaginative-palmier-d7ee2c/deploys/6547ffb6834bb500085f5838
tguerin commented 8 months ago

cc @Joshix-1

Joshix-1 commented 8 months ago

Is there a performance impact when adding a NewtonPainter with no effects to a CustomPaint? If yes, they should only be added if there are effects.

tguerin commented 8 months ago

No need to add a Painter if it won't display anything, will add a painter only if there is active effects