xxxxxxxxxx
let shapes = [];
let shapesNum = 10;
let pg;
const delta = 10;
const palette = ["#E7E2AC", "#F5C220", "#05D5BA", "#EE039C", "#7D378B"];
function setup() {
createCanvas(windowWidth, windowHeight);
angleMode(DEGREES);
pg = createGraphics(width, height);
pg.angleMode(DEGREES);
pg.background(0);
pg.noFill();
pg.erase(0, 80);
let MAX = 500;
const noiseX = pg.random(1000);
const noiseY = pg.random(1000);
for (let k = 0; k < 100; k++) {
pg.beginShape();
for (let p = 0; p < MAX; p++) {
let x = map(noise(noiseX, k * 0.005, p * 0.0111), 0, 1, -pg.width * 0.75, pg.width * 1.75);
let y = map(noise(noiseY, k * 0.005, p * 0.0113), 0, 1, -pg.height * 0.75, pg.height * 1.75);
pg.vertex(x, y);
}
pg.endShape();
}
pg.noErase();
noLoop();
}
function draw() {
// 鶺鴒の眼に穴を開けておく
background(random(palette));
push();
drawingContext.filter = 'blur(30px)';
background(random(palette));
noFill();
for (let p = 0; p < 100; p++) {
let num = floor(random(5, 10));
strokeWeight(random(10, 50));
stroke(random(palette));
beginShape();
for (let q = 0; q < num; q++) {
curveVertex(random(width), random(height));
}
endShape();
}
pop();
image(pg, 0, 0);
}