fix(plot): true-color hatch fills plot in their own colour, not black

Fixes #1417

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Opus 5.5 committed 2026-09-28 18:29:00 +03:00
1 parent b365e51620
commit ac8a9c38db
1 file changed
+3
+3
View File
@@ -1291,6 +1291,9 @@ fn emit_hatch(
g = 1.0;
b = 1.0;
} else if !color_overridden
// `aci == 0` is an explicit true colour: it plots as drawn, only
// indexed colours meant for the dark screen are adapted. (#1417)
&& hatch.aci != 0
&& !(hatch.aci == 7 && matches!(hatch.pattern, HatchPattern::Solid))
{
let is_light = r > 0.80 && g > 0.80 && b > 0.80;