Patterns

PFont font;
void setup() {
size(600, 600);
pixelDensity(2);
background(255);
font = createFont(“Monaco”, 28);
textFont(font);
fill(50, 200, 50);
}
void draw() {
background(0);
for(int i = – 240; i < 600; i += 80) {
pushMatrix();
translate(10, 20);
rotate(radians(340));
String s = “wmntl”;
text(s, i, i-230, 90, 150);
text(s, i, i-100, 90, 150);
text(s, i, i+30, 90, 150);
text(s, i, i+160, 90, 150);
text(s, i, i+290, 90, 150);
text(s, i, i+420, 90, 150);
text(s, i, i+550, 90, 150);
text(s, i, i+680, 90, 150);
popMatrix();
}
println(“finished”);
save(“Pattern_1.jpg”);
}
void setup() {
size(600, 600);
pixelDensity(2);
background(255);
noStroke();
}

 

void draw() {
for(int j=0; j<600; j += 230) {
for(int i=0; i<600; i += 60){
fill(30);
quad(i, j-50, i+30, j-65, i+30, j+65, i, j+50);
quad(i+30, j+65, i+60, j+50, i+60, j+180, i+30, j+165);
}
}
println(“finished”);
save(“Pattern_2.jpg”);
}
void setup() {
size(600, 600);
pixelDensity(2);
background(#B2E5FF);
noStroke();
}
void draw() {
for(int i=0; i<6000; i+=140) {
fill(255);
quad(i+20,i+90, i+90, i+20, i+160, i+90, i+90, i+160);
quad(i+230,i+20, i+300, i-50, i+370, i+20, i+300, i+90);
quad(i-50,i+300, i+20, i+230, i+90, i+300, i+20, i+370);
}

for(int i=-50; i<600; i+=140) {
fill(#FFD64D);
ellipse(i, i, 80, 80);
ellipse(i+210, i-70, 80, 80);
ellipse(i-70, i+210, 80, 80);
}

for(int i=-120; i<600; i +=140) {
fill(#FFB7E5,200);
triangle(i, i+70, i+140, i+70, i+70, i+140);
fill(#4081FF,200);
triangle(i+210, i, i+350, i, i+280, i+70);;
triangle(i-70, i+280, i+70, i+280, i, i+350);
}
save(“Pattern_3.jpg”);
}

void setup() {
size(600, 600);
pixelDensity(2);
}
void draw() {
background(#368FFF);
for(int i = 0; i<1000; i+= 60) {
for(int j = 0; j <1000; j+=60) {
strokeWeight(10);
stroke(#B9D8FF,150);
noFill();
ellipse(i, j, 20, 20);
ellipse(i+30, j+30, 20, 20);
}
}

for(int i=0; i<1000; i+=200) {
for(int j=0; j<1000; j+=200) {
strokeWeight(20);
stroke(#FFEE6C);
fill(#6ADBCD);
ellipse(i, j, 70, 70);
ellipse(i+100, j+100, 70, 70);
}
}
save(“Pattern_4.jpg”);
}

void setup() {
size(600, 600);
pixelDensity(2);
}
void draw() {
background(25);
for(int i=55; i<550; i+=140) {
for(int j=0; j<600; j+=4) {
strokeWeight(2);
strokeCap(SQUARE);
stroke(#98D1FF,200);
line(i, j, i+70, j);
}
}

for(int i=55; i<550; i+=140) {
for(int j=0; j<600; j+=4) {
strokeWeight(2);
strokeCap(SQUARE);
stroke(#FF98EE,200);
line(j, i, j, i+70);
}
}
save(“Pattern_5.jpg”);
}

Leave a reply

Skip to toolbar