al_color_cmyk(3)
π al_color_cmyk(3)
ok so bestie, welcome to the Allegro 5 API β yep, this little cutie lives in the Library Functions Manual, and it's literally the CMYK-to-color glow-up you've been waiting for. π
β¨ NAME β¨
al_color_cmyk β Allegro 5 API π¦
πΈ SYNOPSIS πΈ
ok so you gotta pull in the header first, no cap:
#include <allegro5/allegro_color.h>
and here's the actual function, bestie β copy it exactly:
ALLEGRO_COLOR al_color_cmyk(float c, float m, float y, float k)
π DESCRIPTION π
So what does it DO? It takes your CMYK values β that's cyan, magenta, yellow, and black (yes, k is black, we don't make the rules π) β and hands you back a whole ALLEGRO_COLOR(3) structure. That's it. That's the whole vibe. She converts, she returns, she slays. β¨
π«Ά SEE ALSO π«Ά
like, go check those out too if you wanna go the other direction, iykyk π
and that's the whole page, bestie β no notes, 10/10, ate and left no crumbs. π this was brought to you by the Allegro reference manual, so go forth and convert your colors fr fr. ππ§
π¦ 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