float[] apNorthTrain = {4.52,5.07,5.22,5.37,5.52,6.07,6.18,6.30,6.42,6.54,7.06,7.18,7.30,7.42,7.54,8.06,8.18,8.30,8.42,8.54,9.09,9.24,9.39,9.54,10.09,10.24,10.39,10.54,11.09,11.24,11.39,11.54,12.09,12.24,12.39,12.54,13.09,13.24,13.39,13.54,14.09,14.24,14.39,14.54,15.09,15.21,15.33,15.45,15.57,16.09,16.21,16.33,16.45,16.57,17.09,17.21,17.33,17.45,17.57,18.09,18.21,18.33,18.45,18.57,19.09,19.21,19.37,19.52,20.07,20.22,20.37,20.52,99,99,99,99,99,99,99,99,99,99,99,99,99,99}; float[] apSouthTrain = {5.36,5.51,6.06,6.21,6.36,6.49,7.01,7.13,7.25,7.37,7.49,8.01,8.13,8.25,8.37,8.49,9.01,9.13,9.25,9.37,9.51,10.03,10.18,10.33,10.48,11.03,11.18,11.33,11.48,12.03,12.18,12.33,12.48,13.03,13.18,13.33,13.48,14.03,14.18,14.33,14.48,15.15,15.18,15.33,15.48,16.01,16.13,16.25,16.37,16.51,17.01,17.13,17.25,17.37,17.49,18.01,18.13,18.25,18.37,18.49,19.01,19.13,19.25,19.37,19.49,20.01,20.16,20.29,20.44,20.59,21.14,21.29,21.32,99,99,99,99,99,99,99,99,99,99,99,99,99}; ArrayList ptS; ArrayList ptN; PFont font; class Points{ int ptX; int ptY; Points(int ptOne, int ptTwo){ ptX = ptOne; ptY = ptTwo; } int getX(){ return ptX; } int getY(){ return ptY; } } void setup() { size(500, 500); // Size should be the first statement stroke(255); // Set line drawing color to white frameRate(30); noLoop(); font = loadFont("Calibri-24.vlw"); ptS = new ArrayList(); ptN = new ArrayList(); } void draw() { background(0); // Set the background to black stroke(255); line(250,0,250,500); textFont(font); text("North",430,20); text("South",10,20); stroke(255,0,0); int count = 0; int count2 = 0; int curr = floor(apNorthTrain[0]); int curr2 = floor(apSouthTrain[0]); int pos = 0; for (int i=0; i