float cStep = 0.01;
float[] cBias = {0.0, 100.0, 200.0};
float t = 0.0;
float tStep = 0.05;
void setup(){
size(500, 500);
frameRate(30);
}
void draw(){
loadPixels();
for(int h = 0; h < height; h++){
for(int w = 0; w < width; w++){
float r = noise(w * cStep + cBias[0], h * cStep + cBias[0], t) * 255;
float g = noise(w * cStep + cBias[1], h * cStep + cBias[1], t) * 255;
float b = noise(w * cStep + cBias[2], h * cStep + cBias[2], t) * 255;
pixels[h * width + w] = color(r, g, b);
}
}
updatePixels();
t += tStep;
}