[comp.lang.pascal] VGA Color Cycling

hlaufman@magnus.acs.ohio-state.edu (Harry B Laufman) (05/15/91)

The program FRACTINT, which generates fractal images, has a VGA color
cycling feature which changes the palette so rapidly that the images
are animated.  With 256 color VGA its a spectacular show.  With a care-
fully chosen cycle of colors the image can be topographic.

Anyone know any references (or code) for doing these rapid palette changes?
Thanks and regards,  Harry  hlaufman@magnus.acs.ohio-state.edu

elmo@troi.cc.rochester.edu (Eric Cabot) (05/16/91)

I believe the the program graphdemo that is distributed 
with TurboPascal shows an example of how to do  pallete
shifting. Check out the routine color play.

The normal mode of Fraint adds simply  takes a pallete entry and 
places it in the next lower position in the pallete. The lowest
entry (0) is placed on top (256).

Things may be a little more complicated with the "logarithmic"
pallete option, but I'm not sure.
-EC

--
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Eric Cabot                              |    elmo@uhura.cc.rochester.edu
      "insert your face here"           |    elmo@uordbv.bitnet
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

eli@smectos.gang.umass.edu (Eli Brandt) (05/21/91)

In article <1991May15.145611.2083@magnus.acs.ohio-state.edu> hlaufman@magnus.acs.ohio-state.edu (Harry B Laufman) writes:
>
>The program FRACTINT, which generates fractal images, has a VGA color
>cycling feature which changes the palette so rapidly that the images
>are animated.  With 256 color VGA its a spectacular show.  With a care-
>fully chosen cycle of colors the image can be topographic.
>
>Anyone know any references (or code) for doing these rapid palette changes?
>Thanks and regards,  Harry  hlaufman@magnus.acs.ohio-state.edu

You might look at the Fractint source code (frasrc.???), which is probably
available from wherever you got fraint.???

It's mostly in C, but the video stuff, palette-cycling routines included,
is probably going to be in assembly, in video.asm

/  Eli Brandt     eli@smectos.gang.umass.edu        32@4351 WWIV          \
\  Mentally insert disclaimers               Mentally insert quote        /