Paint framed colorbox backgrounds
This commit is contained in:
1 parent
d88e74cd29
commit
2018e5f8b8
8 files changed
+240
-62
No files matched your search
@@ -638,6 +638,26 @@ fn page_content(
|
||||
));
|
||||
}
|
||||
}
|
||||
DisplayItem::Frame {
|
||||
x,
|
||||
y,
|
||||
width,
|
||||
height,
|
||||
color,
|
||||
thickness,
|
||||
} => {
|
||||
content.push_str(&format!(
|
||||
"{:.3} {:.3} {:.3} RG\n{:.3} w\n{} {} {} {} re S\n0 0 0 RG\n1 w\n",
|
||||
color[0] as f64 / 255.0,
|
||||
color[1] as f64 / 255.0,
|
||||
color[2] as f64 / 255.0,
|
||||
*thickness as f64 / 65_536.0,
|
||||
pt(*x),
|
||||
pt(list.height - *y - *height),
|
||||
pt(*width),
|
||||
pt(*height)
|
||||
));
|
||||
}
|
||||
DisplayItem::Link { .. } => {}
|
||||
DisplayItem::Fill([r, g, b]) => {
|
||||
content.push_str(&format!(
|
||||
|
||||
Reference in new issue
Block a user