Page
Library
Module
Module type
Parameter
Class
Class type
Source
Color_brewerySourceColors palettes and functions to brew colors.
to_int c converts the color to 0xRRGGBB where RR, GG and BB are the red, green and blue values expressed on 2 hexadecimal digits. The alpha value is ignored. This is convenient to interact, say, with the Graphics module.
of_int is the similar to of_int_exn except that it returns None instead of raising an exception.
range ~n a b generates a uniform sampling of n points between a and b (with the bounds a and b included in the list of points) together with colors (based on hue at the moment).
with_colors l add a color range to the list l.