Animation and color tables [message #798] |
Tue, 02 February 1993 08:41 |
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
|
|
|