Read about Lissajous patterns here: http://en.wikipedia.org/wiki/Lissajous_curve
Ask Teresa if you don’t understand
Here’s a program I wrote:
float angle = 0;
float x = 0;
float y = 0;
void setup()
{
size(400,400);
background(#37458B);
stroke(255);
strokeWeight(2);
stroke(#F9FF4D);
}
void draw()
{
x = 200 + 100*sin(radians(angle));
y = 200 + 100*sin(radians(angle) + radians(40));
point(x,y);
angle = angle+2;
}
Can you figure out what simple change I made to draw this instead?