Solved

Unix color palette

Posted on 2000-03-13
4
392 Views
Last Modified: 2013-12-27
I'm creating graphics on a PC for a CBT that will eventually run on a Sun sparck. Is there a system palette on the Sun? I don't want the colors to display incorrectly.
0
Comment
Question by:JoanDarc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2614036
I'm not sure that I exactly understand what you're after. Sun workstations all use X and there is a defined set of colors that are available for X. The issue gets complicated a bit by the fact that some Sun's will only have 8 bit color and others will have 24 bit color. In an application, the correct way is to find out what visual your the current workstaion has and use colors that work in that visual (8 or 24bit).
0
 

Author Comment

by:JoanDarc
ID: 2617018
It's 8 bit (I'm limited to 256 colors). I suppose my question is - if I create art on a PC saved as 8 bit color, will the colors translate to the Sun OK using an adaptive palette? Or should I find out what colors are in the sun system palette (Color Look-Up Table) and use those?
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2617846
I may have not fully understood your question. Are you writing a program that will ultimately run on both platforms, or will only the images be used on both?

I think I've located an interactive color tool that can be used on Solaris, but there seems to be some sort of routing problem at the moment between me and them.
0
 
LVL 2

Accepted Solution

by:
mapc earned 100 total points
ID: 2620617
I assume that you're writing for X-Window System.
Then, there won't be a problem.
The symbolic color names are mapped to RGB using database in:
/usr/openwin/lib/rgb.dir
/usr/openwin/lib/rgb.pag
which is in turn created from:
/usr/openwin/lib/rgb.txt

I just want to remind you that Most of Sun SPARC have cheap 8bit framebuffer which means that there's only 256 color cells available.
But that's mostly a hardware limit.
However, Ultra Creator and Creator3D have ffb0 which is capable of 32bpp.

Good luck!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
removing nim resources 5 69
llcommand 6 100
Move nodes from one TSM to another. 3 95
spectrum scale snapshot  resotre/mount 1 29
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question