TUTORIAL QUICK LINKS



Letter Design by Yeohyun Ahn and layout design by John Page Corrigan by using Ricard Marxer's Caligraft


How to Move
:
The translate( ) function controls the position of any image, object or, this time, letters shown in our window. The function translate( ) uses x, y axis coordinates to arrange position. (The horizontal axis coordinate is x and vertical axis coordinate is y.) In this case, the word “TYPE” is positioned towards the right side. For 3D work (for example, using 3D libraries such as OpenGL and JAVA3D), you can also add an axis coordinate of z, which is placed after y. This example, however, is based in 2D mode.



PFont myFont;
void setup() {
size(200, 200);
background(255,255,255);
myFont = createFont("Univers", 32);
textFont(myFont);
//position x:142 and y:90
translate(142,90);
text("TYPE");
}

For more information: the book, TYPE+CODE Processing for Graphic designers.