Snapshot painting - trails never quite fade out

I’m using the example here to create a firework particle effect with trails that slowly fade out. It involves using the snapshot canvas and blitting over a nearly opaque rectangle with ‘dstIn’ as it’s blendMode.

It looks great, but the trails never entirely fade away. There are a few hacks I can think off to solve this, but I was wondering if there was a ‘proper’ way of solving this issue? 

Thanks

You can try to reduce the alpha of the cover rect from 0.98 to 0.95.

I should add, the likely reason for this is rounding errors. Many phones use 16 bit colours, not 24, and this drop in accuracy means tiny fractions of a colour or alpha value value often end up as zero.

You can try to reduce the alpha of the cover rect from 0.98 to 0.95.

I should add, the likely reason for this is rounding errors. Many phones use 16 bit colours, not 24, and this drop in accuracy means tiny fractions of a colour or alpha value value often end up as zero.

did anyone ever find a solution to this?

reducing the alpha just makes the leftovers more faint but they’re still there. they never completely disappear. (this is with the original 0.98). reducing the alpha makes everything disappear a lot faster, but still doesn’t actually disappear

2zoazra.png

thanks

j

did anyone ever find a solution to this?

reducing the alpha just makes the leftovers more faint but they’re still there. they never completely disappear. (this is with the original 0.98). reducing the alpha makes everything disappear a lot faster, but still doesn’t actually disappear

2zoazra.png

thanks

j