Batik uses wax to keep parts of cloth out of the dye
A batik maker draws or stamps a design onto cloth with wax before dyeing it. The wax blocks the dye, so the covered lines and shapes keep their earlier color.
The wax tells the dye: everywhere but here.
Source · The Metropolitan Museum of Art ↗