calculate color based on colormap, save gif, and control the position