xxxxxxxxxx
// by Laura Krok aka la-krok
var offset;
var x;
var y;
function setup() {
createCanvas(1240, 1748);
background(250, 150, 100);
offset = 0.01;
x = 0;
y = 0;
}
function draw() {
// y = map(sin(offset), 0, 1, 0, 150);
// point(x, y + height / 2);
// y = map(cos(offset), 0, 1, 0, 150);
// point(x, y + height / 2);
push();
translate(width / 2, height / 2);
rotate(frameCount*0.01);
y = map(noise(offset), 0, 1, 0, 150);
strokeWeight(random(5));
stroke(230, 0, 0);
point(x, y);
y = map(noise(offset) + sin(offset/2), 0, 1, 0, 150);
stroke(200, 0, 0);
point(x, y);
y = map(noise(offset) + cos(offset/2), 0, 1, 0, 150);
stroke(150, 0, 0);
point(x, y);
y = map(noise(offset), 0, 1, 0, 500);
point(x, y);
y = map(noise(offset) + sin(offset), 0, 1, 0, 50);
point(x, y);
strokeWeight(random(10));
stroke(180, 0, 0);
y = map(noise(offset) + cos(offset), 0, 1, 0, 800);
point(x, y);
pop();
offset += 0.01;
x += 0.05;
}
function keyTyped() {
if (key === "s" || key === "S") {
noLoop();
saveCanvas("TwomblyBacchus1240x1748", ".jpeg");
}
}