Created
August 31, 2017 00:59
-
-
Save anonymous/7d41386ea62dba82bb1ea48117ff6df2 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
/* | |
* This function creates a lava texture to the parameters set | |
* x is area across | |
* y is area down | |
* WARNING! The larger you spread the texture the more subtle the animation will be | |
* WARNING! will not work in a grid, works better as a background pattern to | |
* the parameters set | |
*/ | |
void lava(int x, int y) { | |
noStroke(); | |
for (int i = 0; i < 2000; i = i + 40) { | |
ellipse( random(x), random(y), (50), (50)); | |
fill((255), random(255), 0, 15); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment