TUTORIAL

3D Typography

	
	3 Dimensional Typography with OPENGL.

	OPENGL
	OpenGL (Open Graphics Library) is the computer industry's standard application program interface (API) for defining 2-D and 3-D graphic images.
	Reference:http://www.processing.org/reference/environment/index.html and http://www.opengl.org/

	Let's start!

	import processing.opengl.*;

	PFont font;

	void setup(){
	size(850,850,OPENGL);

	font = loadFont("TimesNewRomanPSMT-48.vlw");

	background(255);
	smooth();
	textFont(font, 48);

	translate(10,10);

	for(int i=0;i<106;i=i+4){
	fill(0,0,0,180);
	textAlign(CENTER);

	translate(20,20);

	pushMatrix();

	rotateZ(PI*i/48);

	rotateY(-PI*i/48);
	textSize(i);

	text("Z",i,0);
	popMatrix();

	}

	}


	Output:
	


	//Programmed by Yeohyun Ahn.

	import processing.opengl.*;

	PFont font;



	void setup(){
	size(900,900,OPENGL);

	font = loadFont("MrsEavesRoman-48.vlw");

	background(255);
	smooth();
	textFont(font, 48);



	translate(25,25);

	for(int i=0;i<80;i=i+4){
	fill(0,0,0,80);
	textAlign(CENTER);

	translate(20,20);

	pushMatrix();



	rotateY(PI*i/48);
	rotateX(PI*i/48);
	rotateZ(PI*i/48);
	textSize(i*2);

	text("Typo + Code",i,0);
	popMatrix();
	}

	}



	Output:
	


	//Programmed by Yeohyun Ahn.

	import processing.opengl.*;

	PFont font;



	void setup(){
	size(1000,1000,OPENGL);
	font = loadFont("TimesNewRomanPSMT-48.vlw");

	background(255);
	smooth();
	textFont(font, 48);
	translate(500,500);
	for(int i=0;i<72;i++){
	fill(random(i*25),random(i*20),0,190);
	textAlign(CENTER);
	pushMatrix();

	rotateY(PI/36);
	rotateX(PI*i/36);

	textSize(random(i*10));
	text("TYPO + CODE",random(i),random(i));
	popMatrix();

	}
	}

	Output: