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

Home » Public Forums » archive » Re: Color Frustration
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: Color Frustration [message #8373 is a reply to message #8367] Fri, 28 February 1997 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
JD Smith <jdsmith@astrosun.tn.cornell.edu> has either gone completely
bonkers or Ithaca has turned into the Boulder of the East. In
either case, his story gets curiouser and curiouser.

But...I'm pretty sure I know what is going on. :-)

JD writes:
>
> tvlct,0B,255B,0B,!D.N_COLORS-1 ;load green into top color
> tvlct, r,g,b,/get
> r_orig=r & g_orig=g & b_orig=b & r_curr=r & g_curr=g & b_curr=b ;ughh
>
> I do hate that colors common block.

Right-oh. Get rid of them. Completely. Do away with them. This is
the thing that is frying your goose (er, something!).

No way you should have TVLCT, r, g, b, /Get *AND* a common
block. Stuff and nonsense. One or the other, my man. And I say,
chuck the block.

All this copying to and fro is doing you in. Putting you under, so
to speak. Casting stars in your eyes, if you catch my drift. Colors
floating about.

You want colors, go *get* them:

TVLCT, r, g, b, /GET

You want to load them, load them:

TVLCT, r, g, b

Or, what I prefer:

LOADCT, 5, NColors=200, Bottom=10 ; or whatever,

But don't be messin' around with no *common* block. No, sir, you're
better than that! Steer clear of that riff-raft.

> Well, if you made it this far, it's a small miracle,and a testament to
your IDL
> fanatasism.

Do you believe I am not only reading this, but responding after a six-pack
and working 14 hours on my IDL manual today. I have to *seriously* get a life!

> And yes, David, it is a "fantastic story", but aren't all the interesting
ones?

Yes, indeed. And this one has cheered me up more than most. :-)
I'll buy the beer next time I see you , JD!

Cheers!

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
2642 Bradbury Court, Fort Collins, CO 80521
Phone: 970-221-0438 Fax: 970-221-4762
E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
-----------------------------------------------------------
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: NR_MACHAR hangs under Win95
Next Topic: Re: Printing array on one line

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

Current Time: Sun Oct 12 09:25:06 PDT 2025

Total time taken to generate the page: 0.31997 seconds