xxxxxxxxxx
22
let offset = 0;
let paintbrushX;
let paintbrushY;
let r,g,b;
function setup() {
createCanvas(400, 400);
strokeWeight(10);
}
function draw() {
background(255, 15);
paintbrushX = noise(offset) * width;
paintbrushY = noise(offset + 2) * height;
r=noise(offset+2)*255
g=noise(offset)*255
b=noise(offset*0.1)*255
stroke(r,g,b)
point(paintbrushX, paintbrushY);
offset = offset + 0.03;
}