package camlimages
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=b8203da78a9733488e40fafccfafb874c9ebafd8a5f1fa1d9a46ae2ac241e97a
md5=7dd5aa1944d01d2e908d4caa1e1bba78
doc/camlimages.core/Color/index.html
Module Color
Source
Definition of colormaps, i.e. mappings from real RGB colors to integers. The integer corresponding to a color c
is an index i
into a vector of colors whose i
th element is c
.
An exception raised when too many number of colors are used for a given color model.
Colormap
Colormap manipulation functions
Finds a color in the colormap and returns its color index. Raises exception Not_found
if the color is not in the colormap.
Add a new color into the given colormap and return its index. If the color is already in the colormap, it is not added again, and the corresponding color index is returned.
Add the list of new colors into the given colormap and return their indices. If a color is already in the colormap, it is not added again, and the corresponding color index is returned.
R(ed), G(reen), B(lue) representation of colors.
Cyan Magenta Yellow blacK color model
Rgb specialized functions (for backward compatibility)
Color name parser
Color name parser function.
It queries the name in the color name database given by the file Camlimages.path_rgb_txt
. It also understands the following color format:
"#rrggbb" where r,g and b are 0-9a-fA-F
"#rrrrggggbbbb" where r,g and b are 0-9a-fA-F
It may raise Failure
if not found.