Implement code ray for coloring code