Query: bestfit_color
OS: debian
Section: 3alleg4
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
bestfit_color(3alleg4) Allegro manual bestfit_color(3alleg4)NAMEbestfit_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);DESCRIPTIONSearches the specified palette for the closest match to the requested color, which are specified in the VGA hardware 0-63 format. Normally you should call makecol8() instead, but this lower level function may be useful if you need to use a palette other than the currently selected one, or specifically don't want to use the rgb_map lookup table.RETURN VALUEReturns the index of the palette for the closest match to the requested color.SEE ALSOmakecol8(3alleg4) Allegro version 4.4.2 bestfit_color(3alleg4)
| Related Man Pages |
|---|
| makecol24(3alleg4) - debian |
| makecol32(3alleg4) - debian |
| makecol8(3alleg4) - debian |
| makecol8(3alleg4) - mojave |
| makecol8(3alleg4) - php |
| Similar Topics in the Unix Linux Community |
|---|
| Adding the individual columns of a matrix. |
| awk or sed - Convert 2 lines to 1 line |
| How can I do this in VI editor? |
| Introduction |
| One instance of comparing grep and awk |