excolmap(3alleg4)

✨ excolmap ✨

okay bestie, welcome to the Allegro manual πŸ’– this lil page is all about excolmap, one of the example programs that ships with the Allegro game programming library. it's giving "graphics go brrr" energy and honestly? we're obsessed. πŸŽ€


🌸 NAME 🌸

excolmap β€” creating graphical effects with color mapping tables. it's an Allegro game programming library thing, iykyk. πŸ¦‹


πŸ’… SYNOPSIS πŸ’…

#include <allegro.h>

Example excolmap

like yes, that's the whole vibe. short. iconic. periodt. ✨


🫢 DESCRIPTION 🫢

okay so listen. this program is literally a whole demo of how to cook up your own custom graphic effects using the create_color_table function. πŸ”₯

here's the tea: Allegro's drawing routines are affected by any color table you might have set up. like, they're not just out here doing their own thing β€” the table you install changes what actually lands on the screen. no cap.

part one, the greyscale era 🩢

in the first part of this example, a greyscale color table gets set. the result? a simple rectfill call β€” which you'd think would just draw a rectangle with color zero β€” instead uses the already drawn pixels to determine the pixel to be drawn. so it's reading what's already there and deciding what to put down. wild, right?? 😭 if you want the precise algorithm, go read the comment on return_grey_color(), because that's where the details live, bestie. πŸ“–βœ¨

part two, the villain arc πŸ™ƒ

in the second part of the test, the color table gets swapped out for an inverse table. meaning: any pixel you draw will show up as if its color values had been inverted. full opposites attract moment. πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘

the whole squad, fr fr β€” every single one of these is part of the family:


πŸ’€ reminder: this whole thing is the excolmap example page from the Allegro manual, so if you're out here trying to actually run it, that's on you to compile. we're just here for the lore.

and that's the page, bestie!! πŸŽ€βœ¨ this was excolmap(3alleg4) from Allegro, version 4.4.3 β€” mwah, sending you the biggest kiss, go make some color tables, slay, and don't forget to read the comment on return_grey_color(). bye babe πŸ’–πŸ¦‹πŸŒΈ