xxxxxxxxxx
22
let canvasWidth = 400;
let canvasHeight = 400;
let phases = 5;
function setup() {
createCanvas(canvasWidth, canvasHeight);
}
function draw() {
//for(let i = 0; i < canvasWidth; i++){
//circle(i, (sin(i * 2 * PI * phases / canvasWidth) + 1) * canvasHeight / 2, 20)
//}
for(let x = 0; x < canvasWidth; x + canvasWidth / 10)
{
for(let y = 0; y < canvasWidth; y + canvasHeight / 10)
{
circle(x, y, sin(x) + sin(y) + 2)
}
}
}