Mask from polygon

is it possible to create a mask from polygons made up of vertexes in a way that when it draws a new shape it will not draw over the mask, which I guess would be inverted from how a mask would normally be?

Could you post a drawing or something that gives a better picture of what you want?