suse man page for rgb_to_hsv

Query: rgb_to_hsv

OS: suse

Section: 3alleg4

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

hsv_to_rgb(3alleg4)						  Allegro manual					       hsv_to_rgb(3alleg4)

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 values 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(3alleg4), exrgbhsv(3alleg4) Allegro version 4.4.2 hsv_to_rgb(3alleg4)
Related Man Pages
exrgbhsv(3alleg4) - netbsd
convert::color::hsl(3pm) - debian
convert::color::hsv(3pm) - debian
graphics::color::hsv(3pm) - debian
exrgbhsv(3alleg4) - v7
Similar Topics in the Unix Linux Community
Getting command output to putty window title.
Migrating to UNIX
Cut command on RHEL 6.8 compatibility issues
Update kernel Linux without reboot?!
SOCKS proxy &amp; PAM configuration exposure