added more algorithms

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Jürg Hallenbarter
2026-04-27 17:08:24 +00:00
parent d78ef16bff
commit 9a9080c155
10 changed files with 278 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
const circleMaxSize = 30;
const circleMinSize = 5;
const maxcircleAmount = 1000;
let maxcircleAmount = 2;
const circleCords = [];
let maxTries = 100;
let area = [];
@@ -8,7 +8,10 @@ let moveToNextSpotVariable= [];
let x, y, diameter, circleCordsConst, isCircleCollided, tries, insideTry = 0;
function setup() {
createCanvas(500, 500);
createCanvas(windowWidth, windowHeight);
maxcircleAmount = maxTries = floor(width);
console.log(maxTries);
console.log(maxcircleAmount);
background(255, 255, 255);
//randomSeed(99);