xxxxxxxxxx
26
let arr = [];
function setup() {
createCanvas(600, 400);
background(0);
noFill();
stroke(255);
// textSize(100);
// textAlign(CENTER, CENTER);
// text("Fourier", width / 2, height / 2);
// rect(width / 6, height / 3, width / 3 * 2, height / 3);
arc(width / 2, height / 2 - 100, 300, 300, QUARTER_PI, QUARTER_PI * 3);
loadPixels();
for (let x = 0; x < width; x++) {
for (let y = 0; y < height; y++) {
let index = (x + y * width) * 4;
if (pixels[index] != 0) {
arr.push(str(x) + "-" + str(y));
}
}
}
updatePixels();
let p = createP(arr);
}