logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

RGBHSV - Converts a color specification given in the Red, Green, Blue (RGB) color space to color values

Access

       To  use RGBHSV or c_rgbhsv, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in
       that order.

C-Binding Description

       The C-binding argument descriptions are the same as the FORTRAN argument descriptions.

C-Binding Synopsis

       #include <ncarg/ncargC.h>

       void c_rgbhsv (float r, float g, float b, float *h,
       float *s, float *v)

Description

       R           (REAL,  input,  range  [0.,1.])  represents the red intensity component of the input point in
                   RGB color space.

       G           (REAL, input, range [0.,1.])  represents the green intensity component of the input point  in
                   RGB color space.

       B           (REAL,  input,  range [0.,1.])  represents the blue intensity component of the input point in
                   RGB color space.

       H           (REAL, output, range [0.,360.) ) represents the hue of the input point in HSV color space.  A
                   value of (R,0.,0.) in the input space will result in a hue of 0. in the output space.

       S           (REAL,  output,  range  [0.,1.])   represents  the saturation value of the input point in HSV
                   color space.  Saturation is a measure of how much  white  light  is  mixed  with  the  color.
                   Saturation  values  of 0.  represent grays (with a gray value equal to V).  Saturation values
                   of 1. are fully saturated colors.  The hue is  technically  undefined  when  S=0.;  the  code
                   leaves H at its previous value when S=0. (0.  initially). The fully saturated pure hues occur
                   when S=1. and V=1.

       V           (REAL, output, range [0.,1.])  represents the value in HSV space.

Examples

       Use the ncargex command to see the following relevant examples: tcolcv, fcce02.

Messages

       See the colconv man page for a description of all Colconv error messages and/or informational messages.

Name

       RGBHSV - Converts a color specification given in the Red, Green, Blue (RGB) color space to color values
       in the Hue, Saturation, and Value (HSV) color space.

See Also

       Online: colconv, hlsrgb, hsvrgb, rgbhls, rgbyiq, yiqrgb, ncarg_cbind.

       Hardcopy: NCAR Graphics Fundamentals, UNIX Version

Synopsis

       CALL RGBHSV (R, G, B, H, S, V)

See Also