Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!sdd.hp.com!usc!apple!lsr From: lsr@Apple.COM (Larry Rosenstein) Newsgroups: comp.sys.mac.programmer Subject: Re: Access to hardware framebuffer (Color QD) Message-ID: <9888@goofy.Apple.COM> Date: 22 Aug 90 18:46:14 GMT References: <1990Aug21.182827.19315@nada.kth.se> <9880@goofy.Apple.COM> <1990Aug22.110820.8154@nada.kth.se> Distribution: comp Organization: Apple Computer, Inc. Lines: 17 In article <1990Aug22.110820.8154@nada.kth.se> d88-jwa@dront.nada.kth.se (Jon W{tte) writes: > >Well, he wanted to xor the INDICIES, not the colors. Like, say 0 == blue, >and 1 == red, and 2 == black and 3 == green: > >DrawInColor(1); /* Gives a red drawing */ >XORWith(2) /* Makes the red pixels green, and the blue black */ You can do this with Color QuickDraw. Simply make a pix pat (using MakeRGBPat) that is pure black, and use patXOR mode. It will XOR the pixel values (indices). -- Larry Rosenstein, Object Specialist Apple Computer, Inc. 20525 Mariani Ave, MS 46-B Cupertino, CA 95014 AppleLink:Rosenstein1 domain:lsr@Apple.COM UUCP:{sun,voder,nsc,decwrl}!apple!lsr