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

Home » Public Forums » archive » Re: LOADCT and TVSCL
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: LOADCT and TVSCL [message #38620] Fri, 19 March 2004 10:41 Go to previous message
Antonio Santiago is currently offline  Antonio Santiago
Messages: 201
Registered: February 2004
Senior Member
No Nuno,

if you put 255-i that isn't a vector.
You can do:

v = reverse(indgen(256))

then v is a vector with 255,254,...0 and you can use like a RGB.

Bye :)


Nuno Oliveira wrote:
> Suppose I want to use B-W Linear color table inverted. From white do
> black. I thought this code could do it:
>
> LOADCT, 0
> for i = 0, 255 do TVLCT, 255-i, 255-i, 255-i, i
> TVSCL, img
>
> Doesn't work. I haven't understood well how TVLCT works? What's wrong?
> How can I make it?
>
> Thanks,
>
> Nuno.
>
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: LOADCT and TVSCL
Next Topic: Color table editor

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

Current Time: Fri Oct 10 14:26:10 PDT 2025

Total time taken to generate the page: 1.51977 seconds