xxxxxxxxxx
float num = 50;
float counter = 0.01;
int x, y;
void setup () {
size (500, 500);
smooth();
background (255);
x = width/2;
y = height/2;
}
void draw () {
// lissajous curve
noStroke();
// Blue Curve
fill (0, 255, 255, 10);
ellipse (x + (cos(num*2) *40), (y - 50) + (sin(num*8)*50), 10, 10);
// Red Curve
fill (255, 0, 0, 10);
ellipse (x + (cos(num*4) *30), (y + 70) + (sin(num)*50), 10, 10);
// make a yellow circle
fill (255, 255, 0);
ellipse (x + (cos(num) * 150), y + (sin(num) * 150), 5, 5);
num = num + counter;
}