Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!SUMEX-AIM.STANFORD.EDU!sayuri From: sayuri@SUMEX-AIM.STANFORD.EDU (Sayuri Nishimura) Newsgroups: comp.windows.x Subject: drawing with xor Message-ID: Date: 16 Dec 89 03:45:39 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 13 I have a question about drawing operations with xor function. I found out that in order to draw a line, or a string, or a hollow rectangle with xor function, I have to set the foreground slot of the gc to 1 and the background slot of the gc to 0 no matter what value the background slot of the window has. Is this the right behavior? If so, how can I draw a colored line, a colored string etc. with xor function? Drawing a rectangle filled with tile works regardless of the foreground/background slots of the gc. I am using clue/clx and the x server on a sun3. But I found this behavior on the x server of NDC, too. Thanks. sayuri