xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
angleMode(RADIANS);
}
function draw() {
/*background(0);
noStroke();
fill(255);
circle(frameCount*3, height/2, 100);*/
push();
translate(0, height/2);
for(let i = 0; i < width; i++) {
stroke(255, 127, 127);
point(i, sin(i)*200);
stroke(127, 255, 127);
point(i, cos(i)*200);
stroke(127, 127, 255);
point(i, tan(i)*100);
point(i, -(tan(i)*100));
}
pop();
}