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

Home » Public Forums » archive » 24 bit colors in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: 24 bit colors in IDL [message #13577 is a reply to message #13280] Tue, 17 November 1998 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Andy Bristow (ajbristow@dera.gov.uk) writes:

> I was just getting my head round 24-bit, having been prompted by this
> thread. So, at Philip's suggestion I went to
>
> http://www.dfanning.com/tips/colors24.html
>
> All well and good. Sounds relatively straightforward.
>
> So on my SGI (IRIX 6.5.1, IDL 5.1) I tried some of the
> suggested code (immediatley after starting IDL up):
>
> device,decomposed=0
> tvlct,[[255],[255],[0]],100
> plot,randomu(10,10),color=100
>
> expecting the plot to be yellow, as advertised. Except no, _I_
> get a medium-light shade of grey!
>
> Any suggestions?

Oh, dear. I think this is one of those TrueColor/DirectColor
tricks that SGI engineers like to play on people. This is
a complication that I don't *even* want to know about.

Try this. Type this:

Device, Get_Visual_Name=thisName
Print, thisName

If thisName is "TrueColor" change it to "DirectColor":

Device, DirectColor=24

If thisName is "DirectColor" change it to "TrueColor":

Device, TrueColor=24

Do this *before* you open any graphics windows in IDL.
Try the code above again. Different? The same?

Please let us know. :-(

Cheers,

David

Note: A copy of this article was e-mailed to the original poster.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Status Bar Help
Next Topic: Is the new IDL5.2 for Linux ELF-based or a.out-based?

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

Current Time: Fri Oct 10 15:24:39 PDT 2025

Total time taken to generate the page: 0.64397 seconds