The image uses jack-o’-lantern Venn diagrams to illustrate Boolean logic operations between “Trick” and “Treat”:
-
OR → any part of the circles (Trick ∪ Treat) is orange — you get either or both.
-
AND → only the overlapping region is orange — you must have both.
-
XOR → the non-overlapping parts are orange — one or the other, but not both.
-
NOR → everything except Trick ∪ Treat is orange — neither trick nor treat.
-
NAND → everything except the overlap is orange — not both at once.
-
XNOR → only the overlap and the outside are orange — both or neither.
