Skip to content

Instantly share code, notes, and snippets.

Created August 30, 2017 02:03
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 anonymous/b90a3f4524fb19700a73cfa5acc00338 to your computer and use it in GitHub Desktop.
Save anonymous/b90a3f4524fb19700a73cfa5acc00338 to your computer and use it in GitHub Desktop.
UV Sunset
void setup() {
background(255);
size(400, 400);
noFill();
noLoop();
}
void draw() {
for (int i = 0 ; i < 700 ; i = i + 15) {
for (int j = 0 ; j < 700 ; j = j + 10) {
sebastiensFunction(i, j);
}
}
noStroke();
fill(255);
triangle(100, 270, 300, 270, 200, 100);
}
/**
* This creates randomised lines with the source on the top left corner
* White triangle to contrast
*/
void sebastiensFunction(int x, int y) {
fill(0, 100);
stroke(random(255), random (255), random (255));
strokeWeight(10);
line (x, y, 10, 10);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment