That’s really nice. I still have to dive in to this to understand your code. BTW You might want to include “pixelDensity(1)”, otherwise, at least my computer, the canvas is not correctly filled. Twitter allows only 280 characters so it’s too big. I am working on a plasma code without the use of arrays to shorten the code and it works fine in java, but in p5.js it’s terribly slow. I don’t know if it’s possible.
float x,a,t,y,b,d,s,c,p=0;void setup(){size(500, 500);colorMode(HSB,180);loadPixels();}void draw(){p++;for(int u=0;u<500;u++){x=u*0.02;a=sin(x);for(int t=0;t<500;t++){y=t*0.03;b=sin(y);d=sin((x+y+p*.1)/2);s=(a+b+d)/3;c=s*128+128;pixels[u+t*500]=color(c,255-c,255);}}updatePixels();}