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

Home » Public Forums » archive » Animation and color tables
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Animation and color tables [message #798] Tue, 02 February 1993 08:41
pendleton is currently offline  pendleton
Messages: 17
Registered: February 1992
Junior Member
I'm attempting to animate a series of images in IDL, each of which has
its own color table. I've extracted the relevant code from XANIMATE.PRO
and modified it to execute a TVLCT after each image is loaded. This
produces a "flash" as the color table is loaded. I've also tried
executing an "ERASE & TVLCT & DEVICE,COPY" sequence, but the results are no
better, also resulting in a flash.

Each image uses more than half of the 256 colors, so "doubling up" the
color table won't work (i.e., storing the color tables of "even" and "odd"
images in the low and high ends of the RGB vectors.)

Here's the section of code I'm using now...

While 1 Do Begin
For I = 0, NFrames - 1 Do Begin
Device, Copy = [0, 0, xs, ys, 0, 0, pwin(I)]
TVLCT, Red(0:*, I), Green(0:*, I), Blue(0:*, I)
Wait, Delay
If (Get_Kbrd(0) ne '') then Return
EndFor
EndWhile

Has anyone had experience with this sort of problem?
------------------------------------------------------------ -------------------
Jim Pendleton, SysMgr
GRO/OSSE, Dept. Physics & Astronomy
Northwestern University
j-pendleton@nwu.edu (708) 491-2748
[Message index]
 
Read Message
Previous Topic: PV-Wave and HP-UX 9.0
Next Topic: arrow plots in IDL

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

Current Time: Fri Oct 10 05:52:56 PDT 2025

Total time taken to generate the page: 1.12841 seconds