|
|
Donner
C++20 SVG rendering library
|
Defines a mask, which is used to apply image-based visibility to graphical elements.
Compared to "<clipPath>", which requires the contents to be paths, "<mask>" masking is performed based on the white and black values of the mask contents.
These elements are typically placed within a <defs> element, and then referenced by id from a mask attribute.
Example usage:
To reference it with the mask attribute:
This draws a green rectangle with a circle cut out of the middle of it.