exrgbhsv(3)
π exrgbhsv β RGB <-> HSV color space conversions π
okay bestie, welcome to the Allegro manual page for exrgbhsv(3), an example from the Allegro game programming library. it's giving color theory but make it a whole demo program, and honestly? we're obsessed. π
β¨ SYNOPSIS β¨
#include <allegro.h>
Example exrgbhsv
like that's it, that's the whole vibe. a lil include and a whole example program. iconic. π¦
π DESCRIPTION π
so the tea is: this program shows you how to convert colors between the different color-space representations. rgb to hsv, hsv to rgb, the whole glow-up pipeline. π
here's the layout tour, no cap:
- the central area of the screen will display the current color. main character of the screen fr.
- in the top left corner of the screen, three sliders let you modify the red, green and blue value of the color. classic RGB girlies rise. π
- in the bottom right corner of the screen, three sliders let you modify the hue, saturation and value of the color. hsv besties, we see you. π
and the color bars beneath the sliders? they show what the resulting color will look like when the slider is dragged to that position. so you get a lil preview of your future color before you commit. the way that's actually so thoughtful. πβ¨
additionally, this example also shows how to "inherit" the behaviour of a GUI object and extend it, here used to create the sliders. yes bestie, we're doing object inheritance, in a demo, for sliders. it's giving academic but cute. ππ
πΈ SEE ALSO πΈ
the whole friend group, alphabetized, all invited to the group chat:
BITMAP(3)DIALOG(3)END_OF_MAIN(3)PALETTE(3)RGB(3)RGB_MAP(3)allegro_error(3)allegro_init(3)allegro_message(3)clear_to_color(3)create_bitmap_ex(3)create_rgb_table(3)d_bitmap_proc(3)d_box_proc(3)d_slider_proc(3)d_text_proc(3)destroy_bitmap(3)do_dialog(3)font(3)generate_332_palette(3)get_color_depth(3)hsv_to_rgb(3)install_keyboard(3)install_mouse(3)install_timer(3)key(3)makecol(3)makecol32(3)makecol8(3)object_message(3)rgb_map(3)rgb_to_hsv(3)screen(3)set_color(3)set_color_depth(3)set_gfx_mode(3)set_palette(3)textout_ex(3)vline(3)vsync(3)
π heads up bestie: this page is an example, not a function you call. go readrgb_to_hsv(3)andhsv_to_rgb(3)if you actually want the conversions themselves. iykyk.
Allegro version 4.4.3 β mwah, that's the version and the whole source of this lil page, periodt. π«Άβ¨ go make something gorgeous with it bestie, you got this πππ
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms