Paint textcolor runs in named colours
This commit is contained in:
1 parent
f98964f6b6
commit
9ad404acee
7 files changed
+264
-38
No files matched your search
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user