String[] lines; PFont font; void setup() { size(800, 600); font = createFont("Arial", 72); lines = loadStrings("count-stein.txt"); } void draw() { background(255); textFont(font); fill(0); for (int i = 0; i < lines.length; i++) { String[] tmp = split(lines[i], ":"); float sizeFactor = float(tmp[0]); String word = tmp[1]; textSize(4 + sizeFactor * 3); text(word, random(width), random(height)); } noLoop(); }