Created
August 31, 2017 07:11
-
-
Save anonymous/2ab9cdc746387b6b8d7750ea3b087dad 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
void pinkishSquares(int colour, int opc, int x, int y, int size1, int size2, int line, int dist, int amount) { | |
// Colour changes the hue of red | |
// opc is the opacity of the shape | |
// x & y, changes to these values does nothing | |
//size1 and size2 are resizing the squares | |
//dist is the space between the squares, best between 1 & 10 | |
//amount is where you can can change the amount of squares, lower number more squares | |
for (int i = 1; i < 400; i = i + amount) { | |
for (int j = 1; j < 400; j = j + amount) { | |
stroke (line); | |
fill(colour, 0, 10, opc); | |
rect(y=i*dist, x=j*dist, size1, size2); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment