From https://www.x.org/releases/X11R7.7/doc/xproto/x11protocol.html:
| Function |
Operation |
| Clear |
0 |
| And |
src AND dst |
| AndReverse |
src AND (NOT dst) |
| Copy |
src |
| AndInverted |
(NOT src) AND dst |
| NoOp |
dst |
| Xor |
src XOR dst |
| Or |
src OR dst |
| Nor |
(NOT src) AND (NOT dst) |
| Equiv |
(NOT src) XOR dst |
| Invert |
NOT dst |
| OrReverse |
src OR (NOT dst) |
| CopyInverted |
NOT src |
| OrInverted |
(NOT src) OR dst |
| Nand |
(NOT src) OR (NOT dst) |
| Set |
1 |
(cf. https://web.archive.org/web/20220116094036/https://www.hpl.hp.com/techreports/Compaq-DEC/WRL-93-1.pdf)
From https://www.x.org/releases/X11R7.7/doc/xproto/x11protocol.html:
(cf. https://web.archive.org/web/20220116094036/https://www.hpl.hp.com/techreports/Compaq-DEC/WRL-93-1.pdf)