rgb_to_hsv man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

hsv_to_rgb(3)			Allegro manual			 hsv_to_rgb(3)

NAME
       hsv_to_rgb,  rgb_to_hsv - Converts color values between the HSV and RGB
       color spaces. Allegro game programming library.

SYNOPSIS
       #include <allegro.h>

       void hsv_to_rgb(float h, float s, float v, int *r, int *g, int *b);

       void rgb_to_hsv(int r, int g, int b, float *h, float *s, float *v);

DESCRIPTION
       Convert color values between the HSV and RGB color spaces. The RGB val‐
       ues range from 0 to 255, hue is from 0 to 360, and saturation and value
       are from 0 to 1. Example:

	  int r, g, b;
	  float hue, saturation, value;
	  ...
	  /* Convert a reddish color to HSV format. */
	  rgb_to_hsv(255, 0, 128, &hue, &saturation, &value);

	  /* Now put our tin foil hat, and verify that. */
	  hsv_to_rgb(hue, saturation, value, &r, &g, &b);
	  ASSERT(r == 255);
	  ASSERT(g == 0);
	  ASSERT(b == 128);

SEE ALSO
       exlights(3), exrgbhsv(3)

Allegro				 version 4.4.2			 hsv_to_rgb(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net