Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
XmtHSLToRGB(3)		    Library Functions Manual		  XmtHSLToRGB(3)

NAME
     XmtHSLToRGB(),  XmtRGBToHSL()  -  convert	between  the  HSL  and RGB color
     spaces.

SYNOPSIS
     #include <Xmt/Color.h>

     void XmtHSLToRGB(unsigned h, unsigned s, unsigned l, unsigned *r, unsigned
		    *g, unsigned *b)

     void XmtRGBToHSL(unsigned r, unsigned g, unsigned b, unsigned *h, unsigned
		    *s, unsigned *l)

ARGUMENTS
     h	    The Hue of the color. This is an input to XmtHSLToRGB() and an  out-
	    put from XmtRGBToHSL().

     s	    The  Saturation  of the color. This is an input to XmtHSLToRGB() and
	    an output from XmtRGBToHSL().

     l	    The Lightness of the color. This is an input to XmtHSLToRGB() and an
	    output from XmtRGBToHSL().

     r	    The Red component of the color. This is an	input  to  XmtRGBToHSL()
	    and an output from XmtHSLToRGB().

     g	    The  Green component of the color. This is an input to XmtRGBToHSL()
	    and an output from XmtHSLToRGB().

     b	    The Blue component of the color. This is an input  to  XmtRGBToHSL()
	    and an output from XmtHSLToRGB().

DESCRIPTION
     XmtHSLToRGB()  converts  a  color	specified  in the HSL color space to the
     equivalent color in the RGB color space.  XmtRGBToHSL() performs the  oppo-
     site conversion-from the RGB color space to the HSL color space.

     In  X, the r, g, and b components of an RGB color vary between 0 and 65535.
     As implemented by Xmt, the Hue of a HSL color is an  angle  between  0  and
     359,  and	the  Saturation and Lightness of a color vary between 0 and 100.
     Note that the h, s, and l arguments are unsigned, not float or double.  See
     Chapter 6, Using Color, for more information on the HSL color space.

SEE ALSO
     Chapter 4, Using Color,
     XmtAllocColor(), XmtRegisterPixelConverter().

Xmt				   Motif Tools			  XmtHSLToRGB(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=XmtHSLToRGB&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help