al_color_cmyk(3alleg5)

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

πŸ’– al_color_cmyk β€” the Allegro 5 API glow-up πŸ’–

okay bestie, this one is from the Allegro 5 API and it's literally so cute. it lives in the 3alleg5 manual, and it's about to hand you a color. no cap. πŸŽ€


✨ SYNOPSIS ✨

#include <allegro5/allegro_color.h>

ALLEGRO_COLOR al_color_cmyk(float c, float m, float y, float k)

like. four lil floats in, one whole color out. it's giving vending machine but make it aesthetic. πŸ¦‹


πŸ’… DESCRIPTION πŸ’…

so what it does is: it returns you an ALLEGRO_COLOR(3alleg5) structure. that's the whole vibe. ✨

and where does that structure come from? from CMYK values, bestie. that's:

  • c β€” cyan πŸ’™
  • m β€” magenta πŸ’œ
  • y β€” yellow πŸ’›
  • k β€” black πŸ–€

four little floats, and boom, you got yourself a color struct. no conversion drama on your end, it just does it. periodt. πŸ‘‘


πŸ‘€ SEE ALSO πŸ‘€

the whole CMYK-to-RGB friend group, fr fr. they hang out together. 🌸


k byeee 🫢 this was the al_color_cmyk(3alleg5) page, straight outta the Allegro reference manual, and yes the manual name is baked right into the title up top, iconic behavior honestly. go forth and make colors, bestie. you ate. πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from