exrgbhsv (3) - Linux Manuals

exrgbhsv: RGB <-> HSV color space conversions. Allegro game programming library.

NAME

exrgbhsv - RGB <-> HSV color space conversions. Allegro game programming library.

SYNOPSIS

#include <allegro.h>

Example exrgbhsv

DESCRIPTION

This program shows how to convert colors between the different color-space representations. The central area of the screen will display the current color. On the top left corner of the screen, three sliders allow you to modify the red, green and blue value of the color. On the bottom right corner of the screen, three sliders allow you to modify the hue, saturation and value of the color. The color bars beneath the sliders show what the resulting color will look like when the slider is dragged to that position.

Additionally this example also shows how to "inherit" the behaviour of a GUI object and extend it, here used to create the sliders.