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
-----------------------------------------------------------
|