Rotate imageData Through Color Wheel
dsc at swcp.com
Mon Oct 6 10:22:00 EDT 2003
On Sunday, October 5, 2003, at 11:38 PM, Sannyasin Sivakatirswami wrote:
> 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?
If the image is a solid color, then you can compute the four-byte pixel
once and then replicate it for the number of pixels in the image.
Maybe it is possible to have a 1X1 pixel image (or some other small
image) and have it resized to the size you want.
That reduces your problem to a single color calculation per frame.
More information about the Use-livecode