xxxxxxxxxx
21
function setup() {
createCanvas(400, 400);
background(0);
fill(255);
stroke(100);
}
function draw() {
background(220);
//referencing lines
line(0,height/2,width,height/2);
line(width/2, 0, width/2, height);
let amp = 100; // amplification
circle(0, height/2, 30);
circle(0+sin(90)*amp, height/2+0+sin(90)*amp, 30);
console.log(sin(90));
circle(0+sin(90)*amp*2, height/2+0+sin(90)*amp/22, 30);
circle(0+sin(90)*amp, height/2+0+sin(90)*amp, 30);
circle(0+sin(90)*amp, height/2+0+sin(90)*amp, 30);
}