Sponsored Content
Top Forums Shell Programming and Scripting creating color palette using awk or perl Post 302584666 by jim mcnamara on Saturday 24th of December 2011 10:31:18 AM
Old 12-24-2011
I'm missing something. Do you mean html color palettes?

An html color is represented either as a hex value of 00->FF for three base color colors:
where 00 is absence of that color and FF is max brightness of that color, e.g.,
black: 000000 or rgb(00,00,00), red: ff0000 rgb(FF, 00, 00)

Usually palletes are displayed with way fewer elements, and they are presented as a sort matrix.

You need an array of 16 million to handle every color, which is not usually a practical approach.

That said what are you trying to do? Exactly? As a guess: Are looking for SDL perl apps?
Simple DirectMedia Layer google for SDL glue.
 

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix Web color palette???

Please Help! I have supplied graphics files which are being used on the web with the specified RGB web-safe color palette. However, the person using them is saying that that same color palette displays the colors differently on Unix systems. I need to provide a solution, but I know... (1 Reply)
Discussion started by: jmaxmad
1 Replies

2. Shell Programming and Scripting

how to get the Format header in perl in different color

Now here is the problem how to get the Format header in perl in different color. format RPT_TOP= DINISO EXECUTION REPORT @<<<<<<<<<<<<< AGAINST SEOPACTUAL Page : @>>> $TODAY,$%... (3 Replies)
Discussion started by: rrd1986
3 Replies

3. Shell Programming and Scripting

color print using perl

Hi i want to print the text in different color using perl script. i am able to print on console(terminal). but if i try to print the same into a file, i am not able to do color.pl #!/bin/usr/perl use Term::ANSIColor; print "This text is normal.\n"; use Term::ANSIColor qw(:constants);... (3 Replies)
Discussion started by: roopa
3 Replies

4. Programming

Perl: restrict perl from automaticaly creating a hash branches on check

My issue is that the perl script (as I have done it so far) created empty branches when I try to check some branches on existence. I am using multydimentional hashes: found it as the best way for information that I need to handle. Saing multidimentional I means hash of hashes ... So, I have ... (2 Replies)
Discussion started by: alex_5161
2 Replies
Prima::Image::TransparencyControl(3)			User Contributed Perl Documentation		      Prima::Image::TransparencyControl(3)

NAME
Prima::Image::TransparencyControl - standard dialog for transparent color index selection. DESCRIPTION
The module contains two classes - "Prima::Image::BasicTransparencyDialog" and "Prima::Image::TransparencyControl". The former provides a dialog, used by image codec-specific save options dialogs to select a transparent color index when saving an image to a file. "Prima::Image::TransparencyControl" is a widget class that displays the image palette and allow color rather than index selection. Prima::Image::TransparencyControl Properties index INTEGER Selects the palette index. image IMAGE Selects image which palette is displayed, and the color index can be selected from. Events Change Triggered when the user changes "index" property. Prima::Image::BasicTransparencyDialog Methods transparent BOOLEAN If 1, the transparent selection widgets are enabled, and the user can select the palette index. If 0, the widgets are disabled; the image file is saved with no transparent color index. The property can be toggled interactively by a checkbox. AUTHOR
Dmitry Karasik, <dmitry@karasik.eu.org>. SEE ALSO
Prima::ImageDialog. perl v5.14.2 2009-02-24 Prima::Image::TransparencyControl(3)
All times are GMT -4. The time now is 03:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy