comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » staying away from color indices 0, and 255?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
staying away from color indices 0, and 255? [message #47272] Wed, 01 February 2006 11:12
savoie is currently offline  savoie
Messages: 68
Registered: September 1996
Member
Hey all,

I'm generating some images for publication, and I've *always* been able to
escape postscript, until now. So I found lots of information about how to do
device independent graphics, but as I was reading the notes on David's site
(in the TOMS tutorial
http://www.dfanning.com/graphics_tips/toms_tutorial.html) and found this:


"Note I have added 1 to the result, so that the TOMS data is now scaled from
1 to 7, instead of from 0 to 6. I have learned from hard experience that if
you are working with colors in a PostScript file, you want to stay well away
from color indices 0 and 255. Use any other color indices, but not either one
of those! (This is not bad advice, in general, as it turns out.)"

I understand that the 0th index gets changed often. But why is it a good
reason to stay away from index 255?

I ask, because I've always reserved the top 16 colors for myself and done
scaling and loadct, etc, into the remaining locations, and before I rewrite
that code, I thought I'd see how dire it's going to be.

So can anyone enlighten me on this?

Thanks
Matt


--
Matthew Savoie - Scientific Programmer
National Snow and Ice Data Center
(303) 735-0785 http://nsidc.org
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Unix Users: Enable IDL Widget Scrolling
Next Topic: Re: staying away from color indices 0, and 255?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 00:47:16 PDT 2025

Total time taken to generate the page: 0.56268 seconds