palette_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]

palette_color(3)		Allegro manual		      palette_color(3)

NAME
       palette_color - Maps palette indexes into the current pixel format col‐
       ors. Allegro game programming library.

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)

Allegro				 version 4.4.2		      palette_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