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  -  PALETTE_COLOR (3)

NAME

palette_color - Maps palette indexes into the current pixel format colors. Allegro game programming library.

CONTENTS

Synopsis
Description
See Also

SYNOPSIS

#include <allegro.h>

extern int palette_color[256];

DESCRIPTION

Table mapping palette index colors (0-255) into whatever pixel format is being used by the current display mode. In a 256-color mode this just maps onto the array index. In truecolor modes it looks up the specified entry in the current palette, and converts that RGB value into the appropriate packed pixel format. Example:

   set_color_depth(32);
   ...
   set_palette(desktop_palette);
   /* Put a pixel with the color 2 (green) of the palette */
   putpixel(screen, 100, 100, palette_color[2]);

SEE ALSO

set_palette(3), makecol(3), set_color_depth(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro PALETTE_COLOR (3) version 4.4.2

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