intake port
@author
int LOOP = 20;
int ANGLE_NUM = 17;
void setup(){
size(1000, 1000);
}
void draw(){
fill(0, 100);
noStroke();
rect(0, 0, width, height);
translate(width / 2, height / 2);
rotate(-frameCount * 0.01);
for(int i = 0; i < ANGLE_NUM; i++){
pushMatrix();
rotate(TWO_PI / ANGLE_NUM * i);
int num = 20;
for(int j = 1; j < num; j++){
float x = map(j - float(frameCount % LOOP) / LOOP, 0, num, 0, 400);
float y = map(j - float(frameCount % LOOP) / LOOP, 0, num, 0, 400);
float alpha = map(j - float(frameCount % LOOP) / LOOP, 0, num, 255, 0);
float grad = map(j - float(frameCount % LOOP) / LOOP, 0, num, 0, 1);
stroke(lerpColor(color(100, 255, 255), color(0, 200, 255), grad), alpha);
line(x, -y, x, y);
}
popMatrix();
}
}