GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  BESTFIT_COLOR (3)

NAME

bestfit_color - Finds a palette color fitting the requested RGB values. Allegro game programming library.

CONTENTS

Synopsis
Description
See Also

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 table.

RETURN VALUE

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

SEE ALSO

makecol8(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro BESTFIT_COLOR (3) version 4.4.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.