Created
August 30, 2017 02:03
-
-
Save anonymous/b90a3f4524fb19700a73cfa5acc00338 to your computer and use it in GitHub Desktop.
UV Sunset
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
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