Not so sure on that (but what do I know?)

Anyhow check this out:
Code: Select all
OpenWindow(0,0,0,640,480,"",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
StartDrawing(WindowOutput(0))
Debug Hex(Point(2,2))
DrawingMode(#PB_2DDrawing_XOr|#PB_2DDrawing_Transparent)
Box(0,0,80,20,#Green)
StopDrawing()
Delay(1000)
StartDrawing(WindowOutput(0))
Debug Hex(Point(2,2))
DrawingMode(#PB_2DDrawing_XOr|#PB_2DDrawing_Transparent)
Box(0,0,80,20,#Green)
StopDrawing()
Delay(1000)
StartDrawing(WindowOutput(0))
Debug Hex(Point(2,2))
DrawingMode(#PB_2DDrawing_XOr|#PB_2DDrawing_Transparent)
Box(0,0,80,20,#Red)
StopDrawing()
Delay(1000)
StartDrawing(WindowOutput(0))
Debug Hex(Point(2,2))
DrawingMode(#PB_2DDrawing_XOr|#PB_2DDrawing_Transparent)
Box(0,0,80,20,#Red)
StopDrawing()
Delay(1000)
StartDrawing(WindowOutput(0))
Debug Hex(Point(2,2))
DrawingMode(#PB_2DDrawing_XOr)
Box(0,0,80,20,#Blue)
Delay(1000)
Debug Hex(Point(2,2))
DrawingMode(#PB_2DDrawing_XOr)
Box(0,0,80,20,#Blue)
StopDrawing()
Delay(1000)
StartDrawing(WindowOutput(0))
Debug Hex(Point(2,2))
DrawingMode(#PB_2DDrawing_XOr)
Box(0,0,80,20,$FFFFFF)
Delay(1000)
Debug Hex(Point(2,2))
DrawingMode(#PB_2DDrawing_XOr)
Box(0,0,80,20,$FFFFFF)
StopDrawing()
Delay(1000)
StartDrawing(WindowOutput(0))
Debug Hex(Point(2,2))
DrawingMode(#PB_2DDrawing_XOr)
Box(0,0,40,20,$000000)
Box(40,0,40,20,$00FFFF)
Delay(1000)
Debug Hex(Point(2,2))
DrawingMode(#PB_2DDrawing_XOr)
Box(0,0,40,20,$000000)
Box(40,0,40,20,$00FFFF)
StopDrawing()
Repeat:Until WaitWindowEvent()=#PB_Event_CloseWindow
I get the same two end-result colours toggled, regardless. I expected some variation.
Edit: Started or-ing flags, hence the "transparent" bit up there, but it made no difference.
@}--`--,-- A rose by any other name ..