Skip to content

Instantly share code, notes, and snippets.

Created August 31, 2017 07:11
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/2ab9cdc746387b6b8d7750ea3b087dad to your computer and use it in GitHub Desktop.
Save anonymous/2ab9cdc746387b6b8d7750ea3b087dad to your computer and use it in GitHub Desktop.
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