get_palette_range(3alleg4)

✨ get_palette_range ✨

okay bestie, welcome to the Allegro manual, specifically the page for get_palette_range β€” it's a lil function from the Allegro game programming library and it's here to grab you a slice of your palette πŸŽ¨πŸ’–


🌸 NAME 🌸

get_palette_range β€” retrieves a specific palette range. it's giving Allegro game programming library, no cap πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

void get_palette_range(PALETTE p, int from, int to);

like yes, that's the whole thing, she's short and she knows it πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

okay so here's the tea β˜• β€” get_palette_range retrieves the palette entries that live between from and to, and both ends are included, fr fr. inclusive range, bestie, that's the vibe ✨

and the way that you can grab the ENTIRE palette?? just pass 0 and 255. that's it. that's the whole palette. iconic behavior honestly πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

go read those too, they're part of the squad 🫢


okay that's the whole page bestie, mwah πŸ’‹ this lil icon lives in the Allegro manual, and it's version 4.4.3 of Allegro doing the honors 🌟 thanks for reading, go forth and palette responsibly πŸŽ€πŸ’–πŸ¦‹