al_color_rgb_to_hsv(3)
β¨ NAME β¨
okay so bestie, this is al_color_rgb_to_hsv β Allegro 5 API. It lives in the Library Functions Manual, and it's here to do the RGB-to-HSV conversion, no cap. π
π¦ SYNOPSIS π¦
#include <allegro5/allegro_color.h>
void al_color_rgb_to_hsv(float red, float green, float blue,
float *hue, float *saturation, float *value)
π DESCRIPTION π
So you hand it an RGB triplet, right? The components are all in the range 0..1 β that's the vibe check. Then it gives you back the hue in degrees from 0..360, plus saturation and value, both in the range 0..1. Literally that's the whole glow-up. β¨
The hue goes into *hue, saturation into *saturation, and value into *value, because the function writes through those pointers. Iconic pointer behavior, fr fr. π«Ά
π SEE ALSO π
al_color_hsv_to_rgb(3)β the other converter to peek at, bestie.al_color_hsv(3)β another HSV-flavored page to check out. π
that's the whole page, bestie π
it's from the Allegro reference manual and the page is al_color_rgb_to_hsv(3). There's no extra version or date line in the footer β just the manual name and the page name β so yeah, that's the tea. π
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms