Optional ReadonlyalphaOptional ReadonlycolorMask fill color. Pass a resolver for per-class mask colors.
Optional ReadonlyfillOpacity baked into the prepared mask fill. Unlike opacity, this does not
attenuate a mask outline, so callers can use translucent fills with opaque
borders.
Optional ReadonlymodeWhether to render mask fill, stroke, or both.
Optional ReadonlyopacityGlobal mask-layer opacity. This stays outside the prepared artifact so it can be updated cheaply at render time.
Optional ReadonlyshouldReturn false to skip rendering a detection in this mask style.
Optional ReadonlystrokeOptional mask outline. Pass a resolver for per-detection outlines.
Compatibility alias for
opacity.Prefer
opacityfor new code. Mask draw instructions still usealphainternally because renderer backends operate on RGBA-like primitives.