Rotate imageData Through Color Wheel

Sannyasin Sivakatirswami katir at hindu.org
Mon Oct 6 00:50:00 EDT 2003


Has anyone written the code to rotate an image through the color 
wheel--or a subset thereof, since 16  million is probably more than any 
one would want to see, by poking the imageData of the image on some 
kind of loop?

This seems doable, in theory, but then looking more closely at it, 
assuming one could figure out the algorithm to do it (which I don't 
have at this time), the CPU power to crunch the numbers for a real time 
shift over a range of colors looks daunting and would probably run like 
cold molasses...

Goal: color animate, under script control, an otherwise static color 
image without having to generate an inordinately large number of frames 
were one to do it as an animated GIF (where the artist makes the color 
shift manually for each frame) thereby keeping the file size way down 
while retaining the kids visual attention with a little on screen 
action. This is for on-screen teachers' aids that want to be web 
deliverable... i.e. not so giant as to required a CD to be shipped. But 
a 400 x 600 pixel animated Gif with 20-30 frames starts to balloon 
beyond control -- 8-10 megs for a single image in a presentation that 
wants to be able to carry dozens of images... Thus the "hope" for doing 
it by the numbers... to a single imported image.

Or perhaps someone knows another way to achieve the same goal?

Sannyasin Sivakatirswami
Himalayan Academy Publications
at Kauai's Hindu Monastery
katir at hindu.org

www.HimalayanAcademy.com,
www.HinduismToday.com
www.Gurudeva.org
www.Hindu.org




More information about the use-livecode mailing list