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

plrgbhls - Convert RGB color to HLS

Arguments

r (PLFLT(3plplot), input)
              Red intensity (0.0-1.0) of the color.

       g (PLFLT(3plplot), input)
              Green intensity (0.0-1.0) of the color.

       b (PLFLT(3plplot), input)
              Blue intensity (0.0-1.0) of the color.

       p_h (PLFLT_NC_SCALAR(3plplot), output)
              Returned value of the hue in degrees (0.0-360.0) on the color cylinder.

       p_l (PLFLT_NC_SCALAR(3plplot), output)
              Returned  value  of  the  lightness  expressed  as  a  fraction (0.0-1.0) of the axis of the color
              cylinder.

       p_s (PLFLT_NC_SCALAR(3plplot), output)
              Returned value of the saturation expressed as a fraction (0.0-1.0) of  the  radius  of  the  color
              cylinder.

Authors

       Many  developers  (who are credited at http://plplot.org/credits.php) have contributed to PLplot over its
       long history.

Description

       Convert RGB color coordinates to HLS

       Redacted form: General: plrgbhls(r,g,b,p_h,p_l,p_s)

       This function is used in example 2.

Name

plrgbhls - Convert RGB color to HLS

See Also

       PLplot documentation at http://plplot.org/documentation.php.

                                                   July, 2025                                  PLRGBHLS(3plplot)

Synopsis

plrgbhls(r, g, b, p_h, p_l, p_s)

See Also