p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

beginning_java thread: Use of setXORMode() in SketchView.java

Message #1 by George Agnelli <george@m...> on Mon, 15 Apr 2002 09:11:16 +0100
I've read and re-read Ivors explanation for the use of the setXORMode()
method in the SketchView class but I'm still having trouble grasping how it
works and why we use it here.

I understand that it bitwise XORs the color values of the background, the
drawing color and a third color. I have also experimented by commenting it
out, the effect is that the screen does not seem to get redrawn until the
mouse is released.

Can anyone offer a simple explanation of how it works and why we use it here
- for the slow people in the class :) ?



  Return to Index