Permalink
Browse files

Adjust layout of text. this is actually what's currently running on h…

…exascroller
  • Loading branch information...
gdickinson authored and phooky committed Nov 10, 2013
1 parent 5479f75 commit 6b8d1a1392d79291247841a80bd0717792725fee
Showing with 3 additions and 4 deletions.
  1. +3 −4 hexaservice/service.py
View
@@ -16,7 +16,6 @@ def internet_time():
"Swatch Internet Time. Biel meridian."
h, m, s = time.gmtime()[3:6]
h += 1 # Biel time zone: UTC+1
- print h,m,s
seconds = s + (60.0*m) + (60.0*60.0*h)
beats = seconds * 1000.0 / (60.0*60.0*24.0)
beats = beats % 1000.0
@@ -51,10 +50,10 @@ def sigint_handler(signal,frame):
txtimg = base_font.strImg(msg)
img = Image.new("1",(120,7))
img.paste(txtimg,(15,0))
- bmsg = "{0:3.2f}".format(beats)
+ bmsg = "{0:03.2f}".format(beats)
txt2img = base_font.strImg(bmsg)
- img.paste(txt2img,(65,0))
- img.paste(base_font.strImg(".beats",(100,0)))
+ img.paste(txt2img,(62,0))
+ img.paste(base_font.strImg(".beats"),(93,0))
bitmap = compile_image(img,0,0)
for j in range(3):

0 comments on commit 6b8d1a1

Please sign in to comment.