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

Home » Public Forums » archive » Object Graphics Color Weirdness
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
Object Graphics Color Weirdness [message #70440] Wed, 14 April 2010 08:38
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

Has anyone noticed some weirdness with colors in object graphics
applications? I got a report this morning from someone who was
trying to do something very simple with a vertical colorbar
program of mine:

http://www.dfanning.com/programs/vcolorbar__define.pro

This is an old program that makes a color bar by including
an image with a color palette as a texture map on a polygon.
(Younger readers won't fully appreciate how low-level things
were years ago!)

Anyway, the code is simple:

thisPalette = Obj_New('IDLgrPalette')
thisPalette->LoadCT, 25
thisColorbar=OBJ_NEW('VColorBar',COLOR=[0,0,0], Palette=thisPalette)
XObjView, thisColorbar

I expect to see a rainbow color bar. And this is what
I *do* see...now. But, when I first ran this code, I saw
a gray-scale color bar, and this is what the user is also
seeing. I'm running IDL 7.0.2 in Windows 7 64-bit OS.

I have not been able to reproduce the problem with repeated
starts and stops of IDL. But, I know what I saw, and it is
WAY too early in the morning for the juice to have had any
appreciable effect. Any ideas?

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IMAGE_STATISTICS for 3D Array
Next Topic: Re: Object Graphics Color Weirdness

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

Current Time: Thu Oct 09 22:55:39 PDT 2025

Total time taken to generate the page: 0.71952 seconds