xxxxxxxxxx
float xx, yy, angle, angle2, angle3;
float hue;
void setup()
{
size(500,500);
background(0);
noFill();
stroke(255);
angle3 = 0;
colorMode(HSB);
}
void draw()
{
background(0);
translate(width/2, height/2);
for (int i=0; i<30; i++)
{
hue = map(i, 0, 30, 0, 255);
angle = map(i, 0, 30, 0, 360);
angle2 = map(i, 0, 30, 60, 420);
stroke(hue,100,200);
xx = cos(radians(angle - angle3)) * 200;
yy = sin(radians(angle - angle3)) * 200;
ellipse(xx,yy,10,10);
xxx = cos(radians(angle2 + angle3)) * 150;
yyy = sin(radians(angle2 + angle3)) * 150;
point(xxx,yyy);
ellipse(xxx,yyy,10,10);
line(xx,yy,xxx,yyy);
}
angle3++;
}