// **** I broke the line into 5 colors, "TIME BASED" **** graphic = new graphic$(); plot = new plot3d$(); plot.setLookFrom(0,0,3025,600); colors = ['black','blue','red','green','yellow']; points = read('gravity.txt').split('\r\n'); lines = breakLine(points,colors); for (i=0; i < lines.length; ++i) { pnts = lines[i].points; text = 'line,,"color=' + lines[i].color + '",' + pnts.length + ',' + pnts.join(','); graphic.add(text); } graphic.draw(plot,'pic'); |
black
blue
red
green
yellow
|