- f.write("\n");
- f.write(black_right if colorLeft == "white" else white_right)
- f.write("\n");
- f.write(white_left if colorLeft == "white" else black_left)
- f.write("\n");
- f.write(digits["left"][left])
- f.write("\n");
- f.write(digits["right"][right])
- f.write("\n");
+ f.write("\n")
+ f.write(black_bottom if colorTop == "white" else white_bottom)
+ f.write("\n")
+ f.write(white_top if colorTop == "white" else black_top)
+ f.write("\n")
+ if top >= 1:
+ f.write(digits["top"][top] + ' fill="none" stroke-width="5" ' + ('stroke="red"' if colorTop == "white" else 'stroke="orange"') + '/>')
+ f.write("\n")
+ if bottom >= 1:
+ f.write(digits["bottom"][bottom] + ' fill="none" stroke-width="5" ' + ('stroke="red"' if colorTop == "black" else 'stroke="orange"') + '/>')
+ f.write("\n")