Skip to content
Snippets Groups Projects
Commit ac11238b authored by rohieb's avatar rohieb
Browse files

client.py: abstract number of 5x7 segments

parent f9782633
Branches
Tags
No related merge requests found
......@@ -11,12 +11,14 @@ if SPLIT:
SPLIT_N = SPLIT[1]
SPLIT_I = SPLIT[0]-1
NUM_SEG_X = 96
NUM_SEG_Y = 10
PWIDTH = 5
WIDTH = PWIDTH*96/SPLIT_N
WIDTH = PWIDTH*NUM_SEG_X/SPLIT_N
WOFFSET = WIDTH*SPLIT_I
PHEIGHT = 7
PPAD = 5
HEIGHT = PHEIGHT*10
HEIGHT = PHEIGHT*NUM_SEG_Y
import sys
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment