12-05-2000
rgb.txt
I'm not a graphics expert , but on etip for X windows colormap is that the color names are taken froma file called rgb.txt where you can add your new colors definion by its three RGB components value 0-255
just search : find /usr -name "rgb.txt" since its location varies between Unixes.
Hope that helps..
Hezki
4 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
my company is considering a new development of our web site, which used to run on Apachi over Solaris.
The company who is going to do this for us knows only about developing it in ASP.
I guess this means we'll have to have another ISS server on NT for these dynamic pages :(
What are... (5 Replies)
Discussion started by: me2unix
5 Replies
2. UNIX for Dummies Questions & Answers
Hi there all
I am looking for both a web browser as well as a web server (Ie. Netscape Fasttrack) that will run on HPUX 10.
If you know where I can get these free via FTP, please contact me as soon as possible!!
Thanks,
Mark (1 Reply)
Discussion started by: mleathers
1 Replies
3. Shell Programming and Scripting
Hi, I'm wondering if anyone have tried creating a color palette or table using awk or perl using a range of values. thanks for any suggestion in advance.
0-0.1: purple
0.1-0.2: blue
0.2-0.3: green
0.3-0.4: yellow
0.4-0.5: orange
> 0.5: red
Happy holidays,:) (5 Replies)
Discussion started by: ida1215
5 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I am using RHEL 6.1 on VMware
I am searching for a way to change background color (not line by line color wich one can using tput command)
basically changing the color of the whole screen to white instead of the default black and changing font color to black and alos would like to... (2 Replies)
Discussion started by: Dexobox
2 Replies
LEARN ABOUT MOJAVE
create_color_table
create_color_table(3alleg4) Allegro manual create_color_table(3alleg4)
NAME
create_color_table - Fills a color mapping table for customised effects. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void create_color_table(COLOR_MAP *table, const PALETTE pal, void (*blend)(PALETTE pal, int x, int y, RGB *rgb), void (*callback)(int
pos));
DESCRIPTION
Fills the specified color mapping table with lookup data for doing customised effects with the specified palette, calling the blend func-
tion to determine the results of each color combination.
Your blend routine will be passed a pointer to the palette and the two indices of the colors which are to be combined, and should fill in
the RGB structure with the desired result in 0-63 format. Allegro will then search the palette for the closest match to the RGB color that
you requested, so it doesn't matter if the palette has no exact match for this color.
If the callback function is not NULL, it will be called 256 times during the calculation, allowing you to display a progress indicator.
Example:
COLOR_MAP greyscale_table;
...
void return_grey_color(const PALETTE pal,
int x, int y, RGB *rgb)
{
...
}
...
/* Build a color lookup table for greyscale effect. */
create_color_table(&greyscale_table, pal,
return_grey_color, NULL);
SEE ALSO
color_map(3alleg4), create_light_table(3alleg4), create_trans_table(3alleg4), create_blender_table(3alleg4), draw_trans_sprite(3alleg4),
draw_lit_sprite(3alleg4), draw_gouraud_sprite(3alleg4), rgb_map(3alleg4), excolmap(3alleg4)
Allegro version 4.4.2 create_color_table(3alleg4)