xxxxxxxxxx
32
let xPos = 0;
let yPos = 1;
let xOff = 0;
let yOff = 0;
let xAmp = 50;
let yAmp = 50;
function setup() {
createCanvas(400, 400);
background(0);
}
function draw() {
let x = 50+xOff+sin(radians(xPos)) * xAmp;
let y = 50+yOff-sin(radians(yPos)) * yAmp;
xOff += 0.2;
yOff += 0.2;
xAmp += 0.01;
yAmp += 0.01;
xPos += 1;
yPos += 1;
fill(255);
noStroke();
ellipse(x, y, 50, 50);
//xNoisePos += 0.01;
//yNoisePos += 0.01;
}