Skip to content

Commit

Permalink
pic: Improve rendered image quality
Browse files Browse the repository at this point in the history
by reducing the line thickness of each pixel to minimize overlap
  • Loading branch information
afh committed Jul 9, 2024
1 parent 0695f03 commit 99e285f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/pic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl RenderCanvas for Canvas {
pic: format!(
concat!(
"maxpswid={w};maxpsht={h};movewid=0;moveht=1;boxwid=1;boxht=1\n",
"define p {{ box wid $3 ht $4 fill 1 with .nw at $1,-$2 }}\n",
"define p {{ box wid $3 ht $4 fill 1 thickness 0.1 with .nw at $1,-$2 }}\n",
"box wid maxpswid ht maxpsht with .nw at 0,0\n",
),
w = width,
Expand Down

0 comments on commit 99e285f

Please sign in to comment.