Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.