Generative Art #179
Code
void setup() {
size(900, 900);
pixelDensity(2);
//noLoop();
}
void draw() {
background(255);
points();
int c = 8000;
for (int i=0; i<c; i++) {
float x = random(-0.5, 1.5)*width;
float y = random(-0.5, 1.5)*height;
float l = random(150, 200);
color col = getCol();
for (int j=0; j<l; j++) {
float ns = 0.0002;
float w = sin(map(j, 0, l-1, 0, PI))*5;
float angle = noise(x*ns, y*ns)*100;
noStroke();
fill(col);
circle(x, y, w);
y += sin(angle);
x += cos(angle);
}
}
points();
noiseSeed(int(random(1000)));
//saveFrame("output2/####.png");
//if (frameCount > 50)exit();
}
void points() {
for (int i=0; i<700; i++) {
noStroke();
fill(getCol());
circle(random(width), random(height), random(5));
}
}
int[] colors = {#ffe74c,#ff5964,#ffffff,#38618c,#35a7ff};
//int[] colors = {#5BC3EB, #ef5d60, #ec4067, #a01a7d, #E07BE0};
int getCol() {
return colors[(int)random(colors.length)];
}
Happy coding!!!
応援してくださる方!いつでもサポート受け付けてます!