Created
June 22, 2016 05:16
-
-
Save camb416/280ec59e078185d817916310c044f9c6 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
color[] colors = {#395273, | |
#405B73, | |
#F2EDA0, | |
#D9A171, | |
#40211E, | |
#40211E}; | |
void setup(){ | |
size(720,720); | |
} | |
void draw(){ | |
background(0); | |
// line(random(width),random(height),random(width),random(height)); | |
for(int i=0;i<72; i++){ | |
for(int j=0;j<72;j++){ | |
//stroke(colors[(i+j+1)%5]); | |
fill(colors[(i+j)%5]); | |
noStroke(); | |
float offset = sin(cos(i/16.0f)*20.0f+sin((j+frameCount)/16.0f)*10.0f+frameCount/4.0f)*15+5; | |
ellipse(i*10,j*10,offset,offset); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment