float xArr[] = new float[10] ; float yArr[] = new float[10] ; float colorArr[] = new float[10] ; float minColor = 10000.0, maxColor = -10000.0 ; int lim = 0 ; void setup() { size( 500, 500 ); background( 255 ); String lines[] = loadStrings( "data.txt" ); println("there are " + lines.length + " lines"); for (int i=0; i < 10 && i < lines.length ; i++ ) { float[] numbers = float( split( lines[i], "," ) ); for( int j = 0 ; j < numbers.length ; j++ ) { print(numbers[j] + ", " ); if( j == 0 ) { xArr[i] = numbers[j] ; } if( j == 1 ) { yArr[i] = numbers[j] ; } if( j == 2 ) { colorArr[i] = numbers[j] ; if( colorArr[i] > maxColor ) maxColor = colorArr[i] ; if( colorArr[i] < minColor ) minColor = colorArr[i] ; } } lim = i+1 ; println(); } println ( "Min, Max color = " + minColor + " , " + maxColor ); } void draw() { stroke( 40, 50, 200 ); ellipse( 12, 20, 5, 5 ); }