Created
February 4, 2022 01:42
-
-
Save zamfi/a7ab31364451c211ee12dea6a500dc63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// "spaced colored squares" -- array edition | |
colorMode(HSB); | |
noFill(); | |
var SIZE = 40; | |
var xs = [50, 100, 150, 200, 250]; | |
var y = height/2 - SIZE/2; | |
for (var i = 0; i < xs.length; i = i + 1) { | |
stroke(40,100,100); | |
rect(xs[i], y, SIZE, SIZE); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment