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: rgb2hls

Macro: hls2rgb
Description: Generates RGB colors from the HLS color model.

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

Example:
library ("graphic")
h = grid (0,1,360)
l = 0.5.*matrix(rows(h))
s = matrix(rows(h))
rgb = hls2rgb(h~l~s)
rgb
Result:
computes the RGB colors from red-green-blue-red

Library: graphic
See also: rgb2hls

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, 17.8.2000