xxxxxxxxxx
18
let pg;
function setup() {
createCanvas(400, 400);
pg = createGraphics(width, height);
}
function draw() {
pg.background(0, 10);
if (frameCount > 1) {
pg.image(pg, sin(frameCount / 50) * 1, cos(frameCount / 50) * 2);
}
pg.noFill();
pg.stroke(255);
pg.strokeWeight(5)
pg.ellipse(200, 200, noise(frameCount / 100) * 400);
image(pg, 0, 0);
}