Skip to content

Instantly share code, notes, and snippets.

@jkwok91
Created January 11, 2015 05:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkwok91/82fec65a3ead9e54960e to your computer and use it in GitHub Desktop.
Save jkwok91/82fec65a3ead9e54960e to your computer and use it in GitHub Desktop.
imitating ben's rust sketch
/*
unicode drawings
*/
void setup() {
size(400, 400);
}
String[] unicodez = {
" ", " ", "", "", ""
};
void draw() {
background(255);
for (int i = 0; i <= width; i+=15) {
for (int j = 15; j <= height; j+=15) {
float n = noise(i*mouseX,j*mouseY);
int mapped = (int)(map(n*width, 0, width, 0, 5));
fill(0);
text(unicodez[mapped], i, j);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment