removing useless step
This commit is contained in:
parent
982f7144bf
commit
63c0ca85b9
|
@ -48,10 +48,11 @@ for i, inner_list in enumerate(boolmatrix):
|
|||
color="black"
|
||||
else:
|
||||
font=fontnormal
|
||||
color="white" if (letter == '█') else "grey"
|
||||
# drawing a box if the letter is █
|
||||
color="grey"
|
||||
# drawing a black box if the letter is █
|
||||
if (letter == '█'):
|
||||
codexdraw.rectangle([(j*textsize, i*textsize), (j*textsize+textsize, i*textsize+textsize)] , fill =color)
|
||||
if (element):
|
||||
codexdraw.rectangle([(j*textsize, i*textsize), (j*textsize+textsize, i*textsize+textsize)] , fill =color)
|
||||
# drawing the letter
|
||||
else:
|
||||
codexdraw.multiline_text((j*textsize+textsize/5, i*textsize-textsize/10), letter, fill =color, font =font, spacing=0, align ="left")
|
||||
|
|
Loading…
Reference in New Issue