mask

fun Layer.mask(function: () -> Unit)(source)

the drawing acts as a mask on the layer