Sometimes it prints an additional character, e.g. gray 25P
Sometimes it crashes in the Cython code with this error:
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 7: ordinal not in range(128)
I occasionally get it when printing gray 50 or other grays but I never seem to get it with either named colors or with triplet colors.
The code seems innocuous enough, and I've tried various versions. Note that the problem does exhibit itself in the print statement on line 63, so it must be these lines...!
This is really annoying and weird, particularly since I've looked at it several times already and tried variations of the code.
Executing this line has indeterminate results.
gray 25
.gray 25P
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 7: ordinal not in range(128)
I occasionally get it when printing
gray 50
or other grays but I never seem to get it with either named colors or with triplet colors.The code seems innocuous enough, and I've tried various versions. Note that the problem does exhibit itself in the print statement on line 63, so it must be these lines...!