Given a two points with the following structure:
float fx, fy, fz; /* 3D coordinate */
int sx, sy; /* projected 2D corrdinate */
How can I I draw a line between the the points, using multiple segments,
each one colored according to the value of 'z' at that point?