import oscP5.*; import netP5.*; OscP5 osc; int port = 6449; String tag = "/ChucKchat/text"; PFont font; String[] lines; int msgSize = 48; float[] oldy, newy, hu; void setup() { size (screen.width, screen.height); colorMode(HSB); smooth(); font = createFont("sans_serif", 48, true); osc = new OscP5(this, port); textFont(font); textSize(msgSize); textAlign(LEFT); int numLines = int(height / (msgSize*1.5)); lines = new String[numLines]; oldy = new float[numLines]; newy = new float[numLines]; hu = new float[numLines]; for (int i=0; i0; i--) { lines[i] = lines[i-1]; oldy[i] = oldy[i-1]; hu[i] = hu[i-1]; } lines[0] = textMsg; oldy[0] = 0; hu[0] = map(pnum, 0, 12, 0, 128); println(textMsg); }