Path: utzoo!attcan!uunet!husc6!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: CLX and inverting pixels Message-ID: <8901052004.AA06362@EXPIRE.LCS.MIT.EDU> Date: 5 Jan 89 20:04:08 GMT References: <34700004@zaphod> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 7 CLX is currently kinda hard to understand (due to lack of documentation) unless you are already familiar with X via some other path (the protocol spec or the Xlib manual). You need to look at the gcontext-function; setting it to boole-c2 and going normal graphics (e.g. a fill rectangle) will cause inversion. For more complex examples (cast in the context of C), check out the color tutorial in R3 in doc/tutorials/color.tbl.ms, also found as Chapter 7 in the O'Reilly Xlib book Volume 1.