scaleModifier adjusts the scale of the plasma projection resolution is essentially the pen size FPS problems? try phosphorus: https://phosphorus.github.io/app.html?id=177149718&turbo=false&full-screen=true
A beautiful effect that I utilized for an earlier project in a different language. there certainly could be more optimizations such as a pseudo palette system, but this is a rather quick and dirty example