RGBHLS
Converts a color specification given in the Red, Green, Blue (RGB) color space to color values in the Hue, Lightness, Saturation (HLS) color space.
- Provided by: libncarg-dev (Version: 6.6.2-10build2)
- Source: ncl
- Report a bug
Converts a color specification given in the Red, Green, Blue (RGB) color space to color values in the Hue, Lightness, Saturation (HLS) color space.
CALL RGBHLS (R, G, B, H, L, S)
#include <ncarg/ncargC.h>
void c_rgbhls (float r, float g, float b, float *h,
float *l, float *s)
Use the ncargex command to see the following relevant examples: tcolcv, fcce02.
The C-binding argument descriptions are the same as the FORTRAN argument descriptions.
To use RGBHLS or c_rgbhls, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.
See the colconv man page for a description of all Colconv error messages and/or informational messages.
Online: colconv, hlsrgb, hsvrgb, rgbhsv, rgbyiq, yiqrgb, ncarg_cbind.
Hardcopy: NCAR Graphics Fundamentals, UNIX Version
Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.