Draw negated math with a diagonal rule

This commit is contained in:
gloamxun committed 2026-10-20 19:13:09 +08:00
1 parent f88fa7fd9d
commit 7376acffb2
2 files changed
+87 -1

No files matched your search

+16
View File
@@ -80,6 +80,22 @@ fn page_content(list: &DisplayList, height: i64, image_names: &BTreeMap<usize, S
pt(*rule_height)
));
}
DisplayItem::Line {
x1,
y1,
x2,
y2,
width: line_width,
} => {
content.push_str(&format!(
"{} w {} {} m {} {} l S\n",
pt(*line_width),
pt(*x1),
pt(height - *y1),
pt(*x2),
pt(height - *y2)
));
}
DisplayItem::Image {
x,
y,