Color.rgb Color.map ->
object
  method add_color : Color.rgb -> int
  method add_colors : Color.rgb list -> int list
  method colormap : Color.rgb Color.map
  method find_exact : Color.rgb -> int
  method find_nearest : Color.rgb -> int
  method map : Color.rgb array
  method max : int
  method query_color : int -> Color.rgb
  method set_map : Color.rgb array -> unit
  method set_max : int -> unit
  method size : int
end