CompuServe Messages

#Color Cycleing

    24-Dec-94 00:19:01
Sb: #Color Cycleing
Fm: Gary Chaney 74347,2625
To: ALL
I'm trying to figure out how to do color cycling. I have created a 16 color hires screen with the colors that I want and have allocated a backdrop window to draw into. Now what I want to do is cycle all the color table entries, ie. make table entry number 1 number 2, etc then when I get to entry 15 make it color number 1 and so on. I've allocated a colormap structure so that I can have a temporary working area to shift the colors around in. How do I read the screens colortable into this copy, make my changes and rewrite it and update the screen display. It looked like I would have to make succesive calls to GetRGB4 to get each color table entry, then after moving them around, use LoadRGB4 to write them back to the color table, update the screens pointer to the new colortable and then call ReThinkDisplay. Is this correct? Thanks, Gary