Skip to content

Instantly share code, notes, and snippets.

@camb416
Created June 22, 2016 05:16
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 camb416/280ec59e078185d817916310c044f9c6 to your computer and use it in GitHub Desktop.
Save camb416/280ec59e078185d817916310c044f9c6 to your computer and use it in GitHub Desktop.
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