Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

palette_color(3alleg4) [opendarwin man page]

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)

Check Out this Related Man Page

extruec(3alleg4)						  Allegro manual						  extruec(3alleg4)

NAME
extruec - Truecolor pixel format conversions. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example extruec DESCRIPTION
This program shows how to specify colors in the various different truecolor pixel formats. The example shows the same screen (a few text lines and three coloured gradients) in all the color depth modes supported by your video card. The more color depth you have, the less banding you will see in the gradients. SEE ALSO
END_OF_MAIN(3alleg4), PALETTE(3alleg4), RGB(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), acquire_screen(3alleg4), allegro_init(3alleg4), clear_to_color(3alleg4), font(3alleg4), generate_332_palette(3alleg4), install_keyboard(3alleg4), key(3alleg4), makecol(3alleg4), read- key(3alleg4), release_screen(3alleg4), screen(3alleg4), set_color_depth(3alleg4), set_gfx_mode(3alleg4), set_palette(3alleg4), textout_cen- tre_ex(3alleg4), textout_ex(3alleg4), textprintf_ex(3alleg4), vline(3alleg4) Allegro version 4.4.2 extruec(3alleg4)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Shopt -s histappend

What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file. # When the shell exits, append to the history file instead of overwriting it shopt -s histappend (3 Replies)
Discussion started by: cokedude
3 Replies

2. OS X (Apple)

Undeletable file

Greetings, I'm trying to delete a file with a weird name from within Terminal on a Mac. It's a very old file (1992) with null characters in the name: “␀␀Word FinderÂŽ Plus™”. Here are some examples of what I've tried: 12FX009:5 dpontius$ ls ␀␀Word FinderÂŽ Plus™ 12FX009:5 dpontius$ rm... (29 Replies)
Discussion started by: dpontius
29 Replies