Update logo generation
authorstrongtz <strongtz@yeah.net>
星期六, 30 Jan 2021 11:00:08 +0000 (11:00 +0000)
committerBigfootACA <bigfoot@classfun.cn>
星期五, 2 Jul 2021 08:30:12 +0000 (16:30 +0800)
assets/Logo.bmp
assets/generate-logo.py

index a9083e6506f3e620c95d54b139ccd3eda727b2da..ab497c6bb9d49dcd45fc4e09195d5cdba7eb4303 100644 (file)
Binary files a/assets/Logo.bmp and b/assets/Logo.bmp differ
index fc855af9ee0ff8c8b88e883534d9404bcdd093ad..696a0cabbdbbf3d8af237722e30ea7546aa50d03 100644 (file)
@@ -21,13 +21,14 @@ print(ohmydate)
 repoPath = pwd + "/.."
 repo = Repo(repoPath)
 gitHead = str(repo.head.commit)
+gitHead = gitHead[0:7]
 print(gitHead)
-strs = "head:" + gitHead + "\n Build:" + ohmydate
+strs = " commit: " + gitHead + "\n Build: " + ohmydate
 
 
-x = 1
-y = 1
-word_size = 11
+x = 410
+y = 250
+word_size = 40
 word_css  = pwd + "/NotoSerif-Italic.ttf"
 
 #Set font