xxxxxxxxxx
28
let angle = 0;
function setup() {
createCanvas(600, 400);
}
function draw() {
background(0, 10);
stroke(255);
translate(width / 2, height / 2);
scale(1, -1);
strokeWeight(1);
let r = 100;
noFill();
//circle(0, 0, r * 2);
let x = r * cos(angle);
let y = r * sin(angle * 2);
strokeWeight(8);
point(x, y);
point(100, y);
point(x, -100);
angle += 0.05;
}