crystallography, C#, grain, map coloring