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

Home » Public Forums » archive » Re: Does object graphics have true-color?
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: Does object graphics have true-color? [message #50342] Thu, 28 September 2006 10:49 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
Object graphics on a

yy wrote:
> In direct graphics, I can use the following to define my own colors:
> cc=0.99*tanh((findgen(ncolors)/30-4.)/2.)/2+0.5
> plots,[0,u],[0,v],[0,w], /t3d, $
> color=256.^2*B(cc(c)*255.)+256.*G(cc(c)*255.)+R(cc(c)*255.)

ummm. o.k.

> Can I do the same thing in object graphics?
> Does SetRGB in IDLgrPalette work in the
> same way? Thank you!

Unless you specify otherwise, object graphics uses an RGB color model so
you can define your colors however you wish. You'll probably find it
easier to simply define your colors as an RGB triplet instead of as an
index into a palette.

myPlot = OBJ_NEW('IDLgrPlot', FINDGEN(360), $
SIN(FINDGEN(360)*!DTOR)*!RADEG, COLOR=[255,100,50]
myModel = OBJ_NEW('IDLgrModel')
myModel -> Add, myPlot
XOBJVIEW, myModel, /BLOCK
OBJ_DESTROY, myModel


-Rick
[Message index]
 
Read Message
Read Message
Previous Topic: Re: READ TOMS AEROSOL
Next Topic: Image correction for human perception?

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

Current Time: Fri Oct 10 22:15:18 PDT 2025

Total time taken to generate the page: 1.75753 seconds