MLR126: Literal opacity outside [0, 1] or negative stroke width¶
qual reports MLR126 when a literal style value is out of range
on a knowledge-resolved call:
fill_opacity,stroke_opacity, oropacitykeyword of a mobject constructor outside[0.0, 1.0];- the opacity argument of
set_opacity(...),set_fill(..., opacity), orset_stroke(opacity=...)outside[0.0, 1.0]; -
a negative literal
stroke_widthkeyword orset_stroke(width=...). -
Default severity:
error - Minimum confidence:
high - Implementation phase:
1 - Fix: none
Opacity is an alpha channel: values outside [0, 1] are not meaningful
and render as clamped or corrupted colors; a negative stroke width is
never a valid pen size. Calls on unknown receivers and non-literal values
never fire.
Wrong:
Right: