From bef230e3da97403cab130eaed13861aa21f8dd63 Mon Sep 17 00:00:00 2001 From: bbaudry Date: Fri, 3 Nov 2023 18:56:16 +0100 Subject: [PATCH] =?UTF-8?q?.*}=C2=B0><=C2=B0{*.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- p5-experiments/flowfield002.html | 6 +- p5-experiments/frenchco-004.html | 95 +++++++++++++++++++++++--------- 2 files changed, 71 insertions(+), 30 deletions(-) diff --git a/p5-experiments/flowfield002.html b/p5-experiments/flowfield002.html index 2486b82c..d83bfc63 100644 --- a/p5-experiments/flowfield002.html +++ b/p5-experiments/flowfield002.html @@ -83,17 +83,17 @@ } function draw() { - drawfieldangles() + //drawfieldangles() zoff+=0.1 //drawcurveinfield(Math.floor(0.5*nbrows), Math.floor(0.9*nbcols), 1, 42) drawcurveinfield(Math.floor(random()*nbrows), Math.floor(random()*nbcols), 3, 42) //noLoop() - if(frameCount==300){noLoop()} + if(frameCount==7000){noLoop()} } function drawcurveinfield(row, col, offset, len) { strokeWeight(1.5) - stroke(0,0,0) + stroke(0,0,0,42) noFill() beginShape() x1 = col * res diff --git a/p5-experiments/frenchco-004.html b/p5-experiments/frenchco-004.html index b690eb33..94b74c35 100644 --- a/p5-experiments/frenchco-004.html +++ b/p5-experiments/frenchco-004.html @@ -11,23 +11,67 @@ margin: 0; } - - + + -
credits:
@al.my.re; p5.js; perlin; vera
+
+ + +
+
+
+function draw() {
+    drawrandom()
+}
+        
+var noisestep = 0.05
+function drawrandom() {
+    let x = Math.floor(noise(xoff) * stepx) * step
+    xoff += noisestep
+    let y = Math.floor(noise(yoff) * stepy) * step
+    yoff += noisestep
+    stroke(0, 0, 0); noFill()
+    if (random() < 0.05) { 
+        noStroke(); fill(0, 100, 100) 
+    }
+    block(x, y, step, step)
+}
+        
+function block(x, y, step, step){
+    let size = random()*step
+    let m = step-size
+    x+=m/2
+    y+=m/2
+    rect(x,y,size,size)
+}
+
+
+
+
+    
+
+ credits:
@al.my.re; p5.js; perlin; vera +