al_color_hsv_to_rgb(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

al_color_hsv_to_rgb β€” it's giving Allegro 5 API, bestie πŸ’– (yeah this is page al_color_hsv_to_rgb(3alleg5), from the Allegro 5 manual, and it's literally the glow-up station where HSV walks in and RGB walks out πŸ’…)


🌈 SYNOPSIS 🌈

#include <allegro5/allegro_color.h>

void al_color_hsv_to_rgb(float hue, float saturation, float value,
   float *red, float *green, float *blue)

πŸŽ€ DESCRIPTION πŸŽ€

Okay so here's the tea, bestie: this function converts values from the HSV color model over to the RGB color model. That's it, that's the whole job, and it does it flawlessly no cap πŸ¦‹

Parameters (the whole cast, main character energy each one) πŸ‘‘

  • hue β€” the color hue angle, and it lives in the range 0..360 🌸
  • saturation β€” the color saturation, chilling in the range 0..1 πŸ“
  • value β€” the color value, also vibing in the range 0..1 ⭐
  • red, green, blue β€” these are the returned RGB values, and yes they come back to you in the range 0..1 πŸ’œ
Not me pointing out that red, green and blue are pointers β€” you're passing in somewhere for the answers to land, so make sure those floats have a home, fr fr πŸ™ˆ

πŸ‘€ SEE ALSO πŸ‘€


Allegro reference manual πŸ“–βœ¨ and this lil page right here is al_color_hsv_to_rgb(3alleg5) β€” go convert something pretty, bestie, you ate πŸ’…πŸ’–πŸ¦‹

πŸ“¦ where this page comes from