int x, y; double t; x = intValue(Math.sin(w1 * t + p1)); y = intValue(Math.sin(w2 * t + p2)); -----> for (t = 0; t < 1.0; t + .01) { displayArray[x][y] = '*'; }