Skip to content

Instantly share code, notes, and snippets.

@camb416
Created June 22, 2016 05:30
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/b9f8d5791cd70daee935dfc29a77af6c to your computer and use it in GitHub Desktop.
Save camb416/b9f8d5791cd70daee935dfc29a77af6c to your computer and use it in GitHub Desktop.
color[] colors = { #395273,
#395273,
#F2EDA0,
#D9A171,
#395273,
#395273,
#40211E,
#395273,
#40211E,
#395273};
// color[] colors = {#333333,
// #555555,
// #FFFFFF,
// #AAAAAA,
// #DDDDDD,
// #888888};
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)%10]);
noStroke();
float offset = sin(cos(i/16.0f)*20.0f+sin((j+frameCount)/32.0f)*10.0f+frameCount/8.0f)*15+5;
ellipse(i*10,j*10,offset,offset);
}
}
//saveFrame();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment