bestfit_color man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

bestfit_color(3)		Allegro manual		      bestfit_color(3)

NAME
       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);

DESCRIPTION
       Searches 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  ta‐
       ble.

RETURN VALUE
       Returns the index of the palette for the closest match to the requested
       color.

SEE ALSO
       makecol8(3)

Allegro				 version 4.4.2		      bestfit_color(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net