TUTORIAL
How to Repeat and Rotate
setup()
Called once when the program is started.
Reference:http://processing.org/reference/setup_.html
pushMatrix()
Pushes the current transformation matrix onto the matrix stack.
Reference:http://processing.org/reference/pushMatrix_.html
popMatrix()
Pops the current transformation matrix off the matrix stack.
Reference:http://processing.org/reference/pushMatrix_.html

PFont font;
void setup(){
size(800,800);
font = loadFont("MrsEavesRoman-48.vlw");
background(255);
textFont(font, 300);
translate(400,400);
for(int i=0;i<12;i++){
fill(0,0,0);
textAlign(CENTER);
pushMatrix();
rotate(PI*i/6);
text("F",0,0);
popMatrix();
}
}
Exercise1:Change your font style, size, and text by using the above code.
Rotating 'Sarah', 'Menon','April', 'John'
Exercise2:Change the value of for() and rotate()

Rotating 'Ellen'
rotate(PI*i/3);
rotate(PI*i/6);
rotate(PI*i/12);
Exercise3:Change textAlign(CENTER) to textAlign(RIGHT) and textAlign(LEFT) by using the above code..
textAlign(LEFT) textAlign(CENTER) textAlign(RIGHT)

//Programed by Yeohyun Ahn
import processing.pdf.*;
size(800,800);
beginRecord(PDF, "I.pdf");
PFont font;
font = loadFont("Bodoni-48.vlw");
background(255);
translate(400,400);
for(int i=0;i<800;i=i+200){
for(int j=0;j<800;j=j+200){
for(int k=0;k<6;k=k+1){
fill(0,0,0,150);
textFont(font,290);
pushMatrix();
textAlign(CENTER);
rotate(PI*k/3);
text("I", i, j);
popMatrix();
}
}
}
endRecord();

//Programmed by Yeohyun Ahn.
PFont font;
void setup(){
size(800,800);
font = loadFont("MrsEavesRoman-48.vlw");
background(255);
textFont(font, 372);
translate(400,400);
String st = "Abcdef";
for(int i=0;i<6;i++){
fill(0,0,0,180);
textAlign(CENTER);
pushMatrix();
rotate(PI*i/3);
text(st.charAt(i),0,0);
popMatrix();
}
}
Rotating the word, 'Abcdef.'
Rotating 'LUPTON,' and 'Phillips.'