Go to the first, previous, next, last section, table of contents.


Color handling

Author(s): Per Cederberg.

This module handles colors for usage in web pages, using the special web color format (with hexadecimal digits). The colors are handled as atoms, but are internally converted into numeric RGB representations.

Usage and interface (color)

Documentation on exports (color)

PREDICATE: color2rgb/2:

Usage 1: color2rgb(WebColor,RGBColor)

Usage 2: color2rgb(WebColor,RGBColor)

PREDICATE: color2gray/2:

Usage: color2gray(Color,Gray)

PREDICATE: color2bw/2:

Usage: color2bw(Color,BlackOrWhite)

PREDICATE: color_contrast/2:

Usage: color_contrast(Color1,Color2)

PREDICATE: color_bw_contrast/2:

Usage: color_bw_contrast(Color1,Color2)


Go to the first, previous, next, last section, table of contents.