Plugin Option: Background Mask
backgroundMask draws a cover or mask over the canvas using compositing operations.
Example
ts
backgroundMask: {
enable: true,
composite: "destination-out",
cover: {
color: { value: "#000000" },
opacity: 1,
},
}Notes
- Use
cover.imageto use an image as the mask cover. - The plugin extends the built-in
backgroundMaskwith additional compositing features.
