Color space transformations

Author(s): Jose F. Morales.

This module defines color space transformations.

Usage and interface

Documentation on exports

PROPERTYrgb/1

Usage:rgb(C)

C is a color in RGB space (Red-Green-Blue)

    PROPERTYhsv/1

    Usage:hsv(C)

    C is a color in HSV space (Hue-Saturation-Value)

      PROPERTYhsv/1

      Usage:hsv(C)

      C is a color in HSV space (Hue-Saturation-Value)

        PROPERTYcolor/1

        Usage:color(C)

        C is a color in any color space

          PROPERTYhex/1

          Usage:hex(Hex)

          Hex is a color in #RRGGBB hexadecimal representation

            PREDICATEhsv_to_rgb/2

            Usage:hsv_to_rgb(HSV,RGB)

            Transform the color HSV in hsv/1 space to RGB in rgb/1 space

            • Call and exit should be compatible with:
              (color_space:hsv/1)HSV is a color in HSV space (Hue-Saturation-Value)
              (color_space:rgb/1)RGB is a color in RGB space (Red-Green-Blue)

            PREDICATEhsl_to_hsv/2
            No further documentation available for this predicate.

            PREDICATEhsl_to_rgb/2

            Usage 1:hsl_to_rgb(HSL,HSV)

            Transform the color HSL in hsl/1 space to HSV in hsv/1 space

            • Call and exit should be compatible with:
              (color_space:hsl/1)HSL is a color in HSL space (Hue-Saturation-Lightness)
              (color_space:hsv/1)HSV is a color in HSV space (Hue-Saturation-Value)

            Usage 2:hsl_to_rgb(HSL,RGB)

            Transform the color HSL in hsl/1 space to RGB in rgb/1 space

            • Call and exit should be compatible with:
              (color_space:hsl/1)HSL is a color in HSL space (Hue-Saturation-Lightness)
              (color_space:rgb/1)RGB is a color in RGB space (Red-Green-Blue)

            PREDICATErgb_to_hex/2

            Usage:rgb_to_hex(RGB,Hex)

            Transform the color RGB in rgb/1 space to Hex in hex/1 representation

            • Call and exit should be compatible with:
              (color_space:rgb/1)RGB is a color in RGB space (Red-Green-Blue)
              (color_space:hex/1)Hex is a color in #RRGGBB hexadecimal representation

            Usage:color_to_hex(Color,Hex)

            Obtain the atom Hex representation (hex/1) of color Color

            Documentation on imports

            This module has the following direct dependencies: