xxxxxxxxxx
41
function setup() {
createCanvas(600, 600);
noLoop();
pixelDensity(2);
}
function draw() {
background(240); // Light beige background
let midY = height / 2; // Calculate the vertical center of the canvas
for (let y = 0; y < midY + 50; y += 3) {
beginShape();
noFill();
stroke("maroon");
strokeWeight(1.8);
let baseWave = sin(y * 0.1);
for (let x = 0; x < midY + 50; x += 3) {
// Create more irregular wave pattern
let waveVariation =
sin(x * 0.05) * 5 +
sin(x * 0.02 + y * 0.03) * 5 +
noise(x * 0.01, y * 0.05) * 10;
let liquifyEffect =
sin(y * 0.05 + x * 0.03) * 20 + // Base wave
noise(x * 0.02, y * 0.09) * 5 + // Noise for randomness
sin(y * 0.1) * 10; // Additional wave for complexity
let yPos = y + waveVariation;
//let xPos = y + waveVariation
let xPos = x + liquifyEffect; // Apply liquify effect to x position
//curveVertex(x + 150, yPos +100);
point(x + 150, yPos +100);
}
endShape();
}
}