/** * Letters. * * Draws letters to the screen. This requires loading a font, * setting the font, and then drawing the letters. */ PFont fontA; void setup() { size(200, 200); background(0); // Load the font. Fonts must be placed within the data // directory of your sketch. A font must first be created // using the 'Create Font...' option in the Tools menu. fontA = loadFont("CourierNew36.vlw"); textAlign(CENTER); // Set the font and its size (in units of pixels) textFont(fontA, 32); // Only draw once noLoop(); } void draw() { // Set the gray value of the letters fill(255); // Set the left and top margin int margin = 6; int gap = 30; translate(margin*1.5, margin*2); // Create a matrix of letterforms int counter = 0; for(int i=0; i= 26) { counter = 0; } } } }