Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!caen!mondo.engin.umich.edu!mystone From: mystone@mondo.engin.umich.edu (Dean Yu) Newsgroups: comp.sys.mac.programmer Subject: Re: More Deep questions: CLUTs, PICTS, and ReserveEntries Message-ID: <1991Jan28.155940.27265@engin.umich.edu> Date: 28 Jan 91 15:59:40 GMT References: Sender: news@engin.umich.edu (CAEN Netnews) Reply-To: mystone@mondo.engin.umich.edu Distribution: comp.sys.mac.programmer Organization: Patches 'R' Us, A Wholly Owned Subsidiary of Cyberite Systems Lines: 32 In article cfry@jove.cs.pdx.edu (Chall Fry) writes: > >Fast on the heels of Ben Haller's questions about Mac colors, I have a few >of my own. In IM V, the Palette Manager talks about using animating colors >in a windows's palette, and has an interface that looks really slick, >reserving colors in the CLUT for you so that background windows won't go >haywire when you pull your Mesmer trick (you remember Mesmer, right?) >Anyway, due to the reserved nature of the colors, you have to use the >Palette Manager's PmForeColor instead of RGBForeColor to do your drawing. I >however, want to animate the colors of a PICT file, drawn with DrawPicture >(), and DrawPicture only has opcodes for RGBForeColor, so my PICT (which is >supposed to be 14 levels of pure blue) comes out as a mush of other >'nonreserved' colors, and fails to animate! Next step: go quick and dirty >with Color Manager calls. Use SetEntries or RestoreEntries to change the >ColorTable colors directly. Not too bad, except anything blue in the I was banging my head against a wall trying to figure out how to do this about a year ago. The article on the Palette Manager in the first issue of d e v e l o p saved me from a prolonged headache. If you set the second most significant bit in ctFlags (I just woke up and can't remember if ctFlags is an integer or a longint), you'll be able to animate colours in your PICT resource. You'll have to mark the entries as animated still, however, but you won't have to go mucking about with the Colour Manager. _______________________________________________________________________________ Dean Yu | E-mail: mystone@mondo.engin.umich.edu Patches 'R' Us | Real-mail: Dean Yu A Division of Cyberite Systems | 909 Church St Apt C | Ann Arbor, MI 48104 I'm not the voice of Reason, much | Phone: 313 662-4073 less the voice of Cyberite. | 313 662-4163 -------------------------------------------------------------------------------