GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
XmtHSLToRGB(3) FreeBSD Library Functions Manual XmtHSLToRGB(3)

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

#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)

h
The Hue of the color. This is an input to XmtHSLToRGB() and an output 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().

XmtHSLToRGB() converts a color specified in the HSL color space to the equivalent color in the RGB color space. XmtRGBToHSL() performs the opposite 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.

Chapter 4, Using Color,
XmtAllocColor(), XmtRegisterPixelConverter().
Motif Tools Xmt

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.