working lib

This commit is contained in:
Martin Fuchs
2026-08-16 13:50:49 +02:00
parent 5ca9b99df8
commit 0a0b8b19dc
3 changed files with 13 additions and 16 deletions
+6 -8
View File
@@ -1,6 +1,6 @@
let wp;
let area = 400;
let area = 120;
function setup() {
const canvas = createCanvas(windowWidth, windowHeight);
@@ -42,15 +42,13 @@ async function drawArt(testOnly) {
wp.move(-area, -area);
//wp.wait(1000 * 10);
let step = area / 4.001;
let step = area / 2;
for (let y = -area; y < area; y+=step){
for (let x = -area; x < area; x+=step){
//if(random(1) < 0.8){
wp.draw(x, y);
for (let y = -area; y <= area; y+=step){
for (let x = -area; x <= area; x+=step){
wp.move(x+step, y);
wp.draw(x, y+step);
//}
}
}
}
await wp.runPath(testOnly);