void setup(){
size(500, 500);
frameRate(30);
strokeWeight(0.1);
smooth();
noFill();
}
void draw(){
background(0);
int centX = 250;
int centY = 150;
float x, y;
for (int i=0; i<100; i++){
float lastx = -999;
float lasty = -999;
float cros_aug = 1;
float radiusNoise = random(10);
float radius = 10;
stroke(255, 10);
int startangle = int (random(360));
int endangle = 1440 + int(random(1440));
int anglestep = 5 + int(random(3));
for (float ang = startangle; ang <= endangle; ang += anglestep){
radiusNoise += 0.05;
radius += 0.5;
float thisRadius = radius +(noise(radiusNoise)*200)-100;
float rad = radians(ang);
x = centX +(thisRadius * cos(rad)*random(noise(rad)*2/PI));
y = centY +(thisRadius * sin(rad)*random(noise(rad)*2/PI));
if (lastx > -999){
line(x,y, lastx, lasty);
}
lastx = x;
lasty = y;
}
}
}
