logo

Rust program to generate site logo

git clone git://git.shimmy1996.com/logo.git
commit 0dca15cace538fe59deece607b2147ea82b53975
parent 34dfa98509bbcd0603d9b341115abbe4b6509f70
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Mon, 28 May 2018 00:19:27 -0500

Use "width" and "height" in svg output.

Diffstat:
Msrc/main.rs | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/main.rs b/src/main.rs
@@ -67,7 +67,8 @@ fn main() -> io::Result<()> {
         .set("fill", primary_color);
 
     let document = Document::new()
-        .set("viewBox", (0, 0, width, height))
+        .set("width", width)
+        .set("height", height)
         .add(sky)
         .add(flare)
         .add(star);