Skip to content

Commit

Permalink
Update generate_svg.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilunicmobile authored Jan 10, 2025
1 parent 32975c7 commit 9011fc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stats_tracker/generate_svg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ echo "Deletion(s): $d"
value=$(($i - $d))
echo "Lines of code: $value"
mkdir build
echo "<svg width=\"300px\" height=\"300px\" xmlns=\"http://www.w3.org/2000/svg\">
echo "<svg width=\"300px\" height=\"200px\" xmlns=\"http://www.w3.org/2000/svg\">
<style>
@import url(\"https://fonts.googleapis.com/css?family=Source+Code+Pro\");
</style>
<image href=\"background.png\" width=\"100%\" height=\"100%\"/>
<text x=\"50%\" y=\"90px\" font-size=\"65\" text-anchor=\"middle\" fill=\"black\" font-family=\"Source Code Pro\" font-weight=\"bold\">$value</text>
<image href=\"https://picsum.photos/300/200\" width=\"100%\" height=\"100%\"/>
<text x=\"50%\" y=\"90px\" font-size=\"65\" text-anchor=\"middle\" fill=\"black\" font-family=\"Source Code Pro:700\" font-weight=\"bold\">$value</text>
</svg>" > loc.svg
# TEMP_DEB="$(mktemp)" &&
# wget -O "$TEMP_DEB" 'https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb' &&
Expand Down

0 comments on commit 9011fc4

Please sign in to comment.