From f8af519f3997b2798b5f7f4e077bf82c603a683e Mon Sep 17 00:00:00 2001 From: Billy Brown Date: Sat, 2 Dec 2017 19:38:49 +0000 Subject: Documentation --- client/bitfont.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'client/bitfont.py') diff --git a/client/bitfont.py b/client/bitfont.py index 7fa27b4..094616d 100644 --- a/client/bitfont.py +++ b/client/bitfont.py @@ -61,8 +61,12 @@ _bitfont_9 = [ True, True, True, _bitfonts = [ _bitfont_0, _bitfont_1, _bitfont_2, _bitfont_3, _bitfont_4, _bitfont_5, _bitfont_6, _bitfont_7, _bitfont_8, _bitfont_9 ] def bitfont(number): - # Create the fonts - # Generate the digits + """ + Convert a base 10 number into a bitfont, which is represented by a list + representing a 3x5 grid, row by row. A value of True represents a cell + that should be drawn and a value of False represents a cell that should + be left blank. + """ result = [] number = add_digit(result, number) while number > 0: -- cgit v1.2.1