Add 10 random squares

This commit is contained in:
Cametendo
2026-03-30 11:20:29 +02:00
parent f04899575d
commit 01d60e00b2
6 changed files with 58 additions and 0 deletions

17
sketch.js Normal file
View File

@@ -0,0 +1,17 @@
let r, g, b = 0;
function setup() {
createCanvas(800, 800);
strokeWeight(5);
frameRate(5)
background(100, 100, 100, 1);
for(i = 0; i < 10; i++) {
stroke(random(255), random(255), random(255))
noFill()
square(random(width), random(height), random(300));
}
}
function draw() {
frameRate(5);
}