Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: graphic
See also: hls2rgb

Quantlet: rgb2hls
Description: Generates HLS-colors from the RGB color model.

Link:
Usage: hls = rgb2hls (rgb)
Input:
rgb n x 3 array
Output:
hls n x 3 array

Example:

library ("graphic")

rgb = (0:255).*matrix(256,3)

hls = rgb2hls (rgb)

hls

Result:

computes the HLS colors from white-gray-black


Library: graphic
See also: hls2rgb

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Author: Sigbert Klinke, 960925
(C) MD*TECH Method and Data Technologies, 21.9.2000