Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

set_palette(3alleg4) [osx man page]

set_palette(3alleg4)						  Allegro manual					      set_palette(3alleg4)

set_palette - Sets the entire palette of 256 colors. Allegro game programming library. SYNOPSIS
#include <allegro.h> void set_palette(const PALETTE p); DESCRIPTION
Sets the entire palette of 256 colors. You should provide an array of 256 RGB structures. Unlike set_color(), there is no need to call vsync() before this function. Example: BITMAP *bmp; PALETTE palette; ... bmp = load_bitmap(filename, palette); if (!bmp) abort_on_error("Couldn't load bitmap!"); set_palette(palette); SEE ALSO
set_gfx_mode(3alleg4), set_palette_range(3alleg4), set_color(3alleg4), get_palette(3alleg4), select_palette(3alleg4), pal- ette_color(3alleg4) Allegro version 4.4.2 set_palette(3alleg4)

Check Out this Related Man Page

exscale(3alleg4)						  Allegro manual						  exscale(3alleg4)

exscale - Loading PCX files and bitmap stretching. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example exscale DESCRIPTION
This example demonstrates how to use PCX files, palettes and stretch blits. It loads a PCX file, sets its palette and does some random stretch_blits. Don't worry - it's VERY slowed down using vsync(). SEE ALSO
BITMAP(3alleg4), END_OF_MAIN(3alleg4), PALETTE(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), allegro_error(3alleg4), alle- gro_init(3alleg4), allegro_message(3alleg4), blit(3alleg4), destroy_bitmap(3alleg4), install_keyboard(3alleg4), keypressed(3alleg4), load_pcx(3alleg4), replace_filename(3alleg4), screen(3alleg4), set_gfx_mode(3alleg4), set_palette(3alleg4), stretch_blit(3alleg4), vsync(3alleg4) Allegro version 4.4.2 exscale(3alleg4)
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Gnuplot question: plotting 3D data in map view

I have a simple gnuplot question. I have a set of points (list of x,y,z values; irregularly spaced, i.e. no grid) that I want to plot. I want the plot to look like this: - map view (no 3D view) - color of each point should depend on z-value. - I want to define my own color scale - plot should... (1 Reply)
Discussion started by: karman
1 Replies

2. Shell Programming and Scripting

range patterns in awk

Hi All, I am new to awk command and I had a question in using it. I want to filter a code file and print specific functions (that contain menu word in the function name). for example, if the file has: function menu1() { } function f2() { } function menu3() { }so I want... (5 Replies)
Discussion started by: ghoda2_10
5 Replies

3. UNIX for Dummies Questions & Answers

gnuplot easy histogram

hello experts, I have been trying to plot a histogram of a data like; -54 -56 -43 -65 -67 -78 ... I have 156.000 rows of these kind of values between 0 and -100. I just want to make x axis takes values 5 spacing in between like; -100 -95 -90 .............. 0 And I want y... (4 Replies)
Discussion started by: enes71
4 Replies

4. UNIX and Linux Applications

GnuPlot - 2d-graph --> depending from size, different color

Hi, i would like to change color depending from the valuerange. a gnuplot-script will generate a multiplot and in one graph, the ranges should have different colors, e.g. 100 ... 133 --> red 200 ... 233 --> blue 300 ... 333 --> orange 400 ... 433 --> green #Partikeldata - Partikel... (1 Reply)
Discussion started by: IMPe
1 Replies

5. Programming

Ncurses colors

I am using ncurses to develop a user interface. Perhaps I should be using something else, but I am reasonably comfortable with ncurses and don't really want to climb another learning curve at this time. One problem I have dealt with for many years is ncurses' colors. I have simply been... (23 Replies)
Discussion started by: BillLee
23 Replies