al_color_hsv(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

al_color_hsv(3) πŸ’– β€” Library Functions Manual

✨ NAME ✨

al_color_hsv β€” Allegro 5 API, bestie 🫢


🌈 SYNOPSIS 🌈

#include <allegro5/allegro_color.h>

ALLEGRO_COLOR al_color_hsv(float h, float s, float v)

πŸ’… DESCRIPTION πŸ’…

okay so this one returns an ALLEGRO_COLOR(3) structure from HSV (hue, saturation, value) values. that's the whole vibe: HSV goes in, an ALLEGRO_COLOR(3) comes back ✨

Parameters, because we love a labeled list πŸ’–

  • hue β€” the color hue angle, in the range 0..360 πŸŽ€
  • saturation β€” color saturation, in the range 0..1 🌸
  • value β€” color value, in the range 0..1 πŸ¦‹

πŸ‘‘ SEE ALSO πŸ‘‘

go peek at those too, iykyk πŸ’œ


β€” source/version: Allegro reference manual β€’ date: not listed on this page, so no invented date, periodt πŸ«ΆπŸ’–

πŸ“¦ 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