forgot some files
This commit is contained in:
parent
3e59b011e1
commit
b511b4f69e
Binary file not shown.
3
csv/crypto.csv
Normal file
3
csv/crypto.csv
Normal file
@ -0,0 +1,3 @@
|
||||
name,current,24hr change
|
||||
bitcoin,50378,0.18956930030648758
|
||||
ethereum,4007.97,4.564560454952176
|
|
1
csv/scroll_text.csv
Normal file
1
csv/scroll_text.csv
Normal file
@ -0,0 +1 @@
|
||||
hello world!,255,255,0
|
|
@ -1,2 +1,2 @@
|
||||
speed,brightness
|
||||
f,7
|
||||
s,5
|
|
BIN
scroll_text.ppm
Executable file
BIN
scroll_text.ppm
Executable file
Binary file not shown.
@ -173,7 +173,7 @@ class StockTicker():
|
||||
width, height = self.get_text_dimensions(text, font)
|
||||
print(text)
|
||||
print('dims:', width, height)
|
||||
img = Image.new('RGB', (width + 10, 32))
|
||||
img = Image.new('RGB', (width + 50, 32))
|
||||
d = ImageDraw.Draw(img)
|
||||
|
||||
d.text((4, 0), text, fill=(int(r), int(g), int(b)), font=font)
|
||||
@ -439,8 +439,8 @@ if __name__ == '__main__':
|
||||
#stock_ticker.getFullStockImage(1)
|
||||
#stock_ticker.displayStocks()
|
||||
|
||||
stock_ticker.delay = 0.001
|
||||
stock_ticker.scrollImageTransition(['final.ppm', 'final.ppm'], offset_x = 0, offset_y = 0)
|
||||
#stock_ticker.delay = 0.001
|
||||
#stock_ticker.scrollImageTransition(['final.ppm', 'final.ppm'], offset_x = 0, offset_y = 0)
|
||||
|
||||
while True:
|
||||
msg = getInput()
|
||||
|
Loading…
Reference in New Issue
Block a user