// An array of stock quotes String[] stocks = { "I got headache whenever I read ICM book. ", "I couldn't sleep yesterday, actually I slept sitting on my chair..too bad! --! ", "It was not easy for me to understand computer programming ^^! ", "It makes me crazy, sad, and gives me a headache, but sometimes it makes me happy when I understand something easilly.^^!...... rarely...... ", "Nonetheless..I am happy @^^@ good luck to myself!! ", }; PFont f; float x; void setup() { size(400,100); f = loadFont("Nirvana-48.vlw"); x = 0; framerate(60); } void draw() { background(226,209,215); fill(243,108,180); // Display stocks at x location textFont(f,70); textAlign(LEFT); float start = x; for (int i = 0; i < stocks.length; i++) { text(stocks[i],start,75); start+=textWidth(stocks[i]); } // Decrement x x = x - 2; }