mirror of
https://github.com/Cametendo/EMVs-Creative-coding.git
synced 2026-06-20 17:45:02 +02:00
Add 10 random squares
This commit is contained in:
17
sketch.js
Normal file
17
sketch.js
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user