Man Linux: Main Page and Category List

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.

SEE ALSO

       BITMAP(3alleg), DIALOG(3alleg),  END_OF_MAIN(3alleg),  PALETTE(3alleg),
       RGB(3alleg),           RGB_MAP(3alleg),          allegro_error(3alleg),
       allegro_init(3alleg), allegro_message(3alleg),  clear_to_color(3alleg),
       create_bitmap_ex(3alleg),                     create_rgb_table(3alleg),
       d_bitmap_proc(3alleg),    d_box_proc(3alleg),    d_slider_proc(3alleg),
       d_text_proc(3alleg),     destroy_bitmap(3alleg),     do_dialog(3alleg),
       font(3alleg),  generate_332_palette(3alleg),   get_color_depth(3alleg),
       hsv_to_rgb(3alleg),   install_keyboard(3alleg),  install_mouse(3alleg),
       install_timer(3alleg), key(3alleg), makecol(3alleg), makecol32(3alleg),
       makecol8(3alleg),        object_message(3alleg),       rgb_map(3alleg),
       rgb_to_hsv(3alleg),         screen(3alleg),          set_color(3alleg),
       set_color_depth(3alleg),   set_gfx_mode(3alleg),   set_palette(3alleg),
       textout_ex(3alleg), vline(3alleg), vsync(3alleg)