Codes

Background Attributes

size(250,250);
smooth();
background(250);


Background patterns of gray circles

for (int i=-3; i<300; i=i+15) {

noFill();
stroke(237);
strokeWeight(1);
ellipse(i,3,30,30);
}


for (int i=-18; i<280; i=i+15) {

noFill();
stroke(237);

ellipse(i,18,30,30);
}

for (int i=-33; i<290; i=i+15) {

stroke(237);
ellipse(i,33,30,30);
}

for (int i=-48; i<300; i=i+15) {
stroke(237);
ellipse(i,48,30,30);
}

for (int i=-63; i<300; i=i+15) {
stroke(237);
ellipse(i,63,30,30);
}

for (int i=-78; i<400; i=i+15) {
stroke(237);
ellipse(i,78,30,30);
}

for (int i=-93; i<300; i=i+15) {
stroke(237);
ellipse(i,93,30,30);
}

for (int i=-108; i<300; i=i+15) {
stroke(237);
ellipse(i,108,30,30);
}

REVERSE

for (int i=-258; i<300; i=i+15) {
stroke(237);
ellipse(i,258,30,30);
}



for (int i=-228; i<280; i=i+15) {
stroke(237);
ellipse(i,228,30,30);
}

for (int i=-213; i<290; i=i+15) {

stroke(237);
ellipse(i,213,30,30);
}

for (int i=-198; i<300; i=i+15) {
stroke(237);
ellipse(i,198,30,30);
}

for (int i=-183; i<300; i=i+15) {
stroke(237);
ellipse(i,183,30,30);
}

for (int i=-168; i<400; i=i+15) {
stroke(237);
ellipse(i,168,30,30);
}

for (int i=-153; i<300; i=i+15) {
stroke(237);
ellipse(i,153,30,30);
}

for (int i=-138; i<300; i=i+15) {
stroke(237);
ellipse(i,138,30,30);
}




CENTRE

for (int i=-123; i<300; i=i+15) {
stroke(237);
ellipse(i,123,30,30);
}


Coloured Circles

int circleSize = 15;
int numCircles = 15;
int circleSpacing = 25;


noStroke();



for (int a=1; a<numCircles; a++) {
for (int b=1; b<numCircles; b++) {

float shiftX= random (-10,-15);
float shiftY=random(-10,-15);
float bulge = random (-90,10);
fill(34/a,53004+a*b,73/a*b,20);

ellipse(a*circleSpacing+shiftX,b*circleSpacing+shiftY,circleSize+bulge,circleSize+bulge);


}
}


Black bold circles

stroke(0);
strokeWeight(5);
ellipse(250,230,140,140);

strokeWeight(15);
ellipse(180,245,60,60);




strokeWeight(7);
ellipse(250,150,80,80);

strokeWeight(10);
ellipse(120,210,70,70);


ellipse(45,250,40,40);

strokeWeight(7);
ellipse(0,210,20,20);


strokeWeight(6);
ellipse(180,80,30,30);


strokeWeight(8);
ellipse(220,20,3,3);

strokeWeight(5);
ellipse(245,50,3,3);

Save the file in .png format

save("smooth_pattern.png");