2D paint basics?

I can’t find any info in the manual or searching posts on the Mask tool or Mask brush or the Mask option from the View/Paint/Mask in the 2D editor. I can draw some splines when using the Mask option of the , then what? Maybe related, or not, is the Mask tool when painting. How do they work and what are they used or?
thanks