Paint textcolor runs in named colours

This commit is contained in:
gloamxun committed 2026-10-26 01:41:00 +08:00
1 parent f98964f6b6
commit 9ad404acee
7 files changed
+264 -38

No files matched your search

+8
View File
@@ -610,6 +610,14 @@ fn page_content(
}
}
DisplayItem::Link { .. } => {}
DisplayItem::Fill([r, g, b]) => {
content.push_str(&format!(
"{:.3} {:.3} {:.3} rg\n",
*r as f64 / 255.0,
*g as f64 / 255.0,
*b as f64 / 255.0
));
}
DisplayItem::Special(special) => {
content.push_str(special);
content.push('\n');