suse man page for palette_color

Query: palette_color

OS: suse

Section: 3alleg4

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

palette_color(3alleg4)						  Allegro manual					    palette_color(3alleg4)

NAME
palette_color - Maps palette indexes into the current pixel format colors. 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(3alleg4), makecol(3alleg4), set_color_depth(3alleg4) Allegro version 4.4.2 palette_color(3alleg4)
Related Man Pages
exscn3d(3alleg4) - suse
extruec(3alleg4) - centos
exscn3d(3alleg4) - mojave
extruec(3alleg4) - mojave
extruec(3alleg4) - osx
Similar Topics in the Unix Linux Community
How to restrict user to a specific directory in solaris 10
Grant unprivileged user rights to see the output of echo|format but not modify disks
Cut command on RHEL 6.8 compatibility issues
Update kernel Linux without reboot?!
The Future of the PM (Private Message) System at UNIX.com