Created
November 27, 2015 23:46
-
-
Save tado/ca7fd9dc950faf6c541d to your computer and use it in GitHub Desktop.
50 . Shades of Grey for Processing
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
size(800, 800); | |
float shades = 50.0; | |
noStroke(); | |
for(int i = 0; i < shades; i++){ | |
fill(color(255/shades*i)); | |
rect(width/shades*i, 0, width/shades, height); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment