bestfit_color (3) Linux Manual Page
bestfit_color – Finds a palette color fitting the requested RGB values. Allegro game programming library.
Synopsis
#include <allegro.h> int bestfit_color(const PALETTE pal, int r, int g, int b);
bestfit_color – Finds a palette color fitting the requested RGB values. Allegro game programming library.
int bestfit_color(const PALETTE pal, int r, int g, int b);