xxxxxxxxxx
colorMode(RGB, 400, 400, 400);
size(400, 400);
background(400);
//noStroke();
stroke(400);
//fill(0, 0, 0, 50);
smooth();
float radius = 10;
float ra;
int centx = width / 2;
int centy = height / 2;
//stroke(20,50,70);
float x, y;
float lastx = -999;
float lasty = -999;
for (float ang = 0; ang <= 300; ang += 0.1) {
radius += 0.1;
float rad = radians(ang);
rad = ang * 2;
x = centx + (radius * cos(rad));
y = centy + (radius * sin(rad));
if (lastx > -999) {
fill(400 - x, 400 - y, x, 300);
ellipse( x, y, 10, 10);
}
lastx = x;
lasty = y;
}