xxxxxxxxxx
32
let t = 0;
function setup() {
createCanvas(160, 360);
noLoop();
}
function draw() {
translate(3, 0);
background("#f9a622");
background(255);
// fill(0);
// noStroke();
noFill();
stroke(0);
let margin = 16;
let jit = 4;
for (let j = margin + 5; j <= height - margin; j += 40) {
let wg = map(noise(j * 0.08), 0, 1, 8, 20);
strokeWeight(wg);
beginShape();
for (let i = margin + random(-2,2); i < width-margin; i += 5) {
let y = j + map(noise(j * 0.05, i * 0.05), 0, 1, -jit, jit);
vertex(i, y);
}
endShape();
}
save("petlja3.jpg");
}