Xref: utzoo comp.windows.x:33056 comp.windows.open-look:654 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!zazen!uwvax!astroatc!vidiot!ftms!brown From: brown@ftms.UUCP (Vidiot) Newsgroups: comp.windows.x,comp.windows.open-look Subject: Xor'ing of colors problems Message-ID: <26@ftms.UUCP> Date: 20 Feb 91 23:01:34 GMT Reply-To: brown@ftms.UUCP (Vidiot) Organization: Vidiot's Other Hangout Lines: 23 We are using OpenLook under SunOS 4.1. The programmer is using the GXxor function in the graphics context for Xlib calls. We get the following results: draw color background result expect black black white black white white tan(?) black red red white black red blue aquamarine(?)/ magenta cyan blue blue white black Can someone explain why we are not getting the expected results? Is there a formula that can be used to determine ahead of time what the results will be? Thanks in advance. -- harvard\ ucbvax!uwvax!astroatc!ftms!brown rutgers/ INTERNET: spool.cs.wisc.edu!astroatc!ftms!brown