Color.Rgb
Colormap for RGB
type t = rgb
Find the given color in the colormap and returns the color index. Not_found
may be raised.
add_color map c
adds c
to map
if c
is not in map
. The function returns the color index for c
. It may raise Too_many_colors
.
add_colors
is as same as add_color
but it adds multiple colors