tests color of centroid
transformation from 2d to 3d, first approximation