change solution font size

This commit is contained in:
samerbam 2023-08-23 20:05:51 -04:00
parent 213c1a556d
commit becb7a28bd
4 changed files with 3 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 11 KiB

BIN
application/sudoku_8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -149,7 +149,7 @@ if __name__ == '__main__':
for y in su_sol:
print(y)
convert_to_image(su)
convert_to_image(su_sol, size=4, flipped=True)
convert_to_image(su_sol, size=8, flipped=True)
# print(su)
# for x in generate_sudoku():
# print(x)

View File

@ -132,10 +132,9 @@ class ThermalPrinter():
# convert_to_image(generate_sudoku())
sudokus = generate_sudoku()
convert_to_image(sudokus[0], size=16, flipped=False)
convert_to_image(sudokus[1], size=4, flipped=True)
convert_to_image(sudokus[1], size=8, flipped=True)
self.p.set(align="right")
self.p.image("sudoku_4.png")
self.p.text("\n")
self.p.image("sudoku_8.png")
self.p.set(align="center")
self.p.image("sudoku_16.png")
# self.p.close()