returns the binary of integer n, count refers to amount of bits
(n, count=8)
| 215 | # Modified so it complies with the Citscape label map colors |
| 216 | ############################################################################### |
| 217 | def uint82bin(n, count=8): |
| 218 | """returns the binary of integer n, count refers to amount of bits""" |
| 219 | return ''.join([str((n >> y) & 1) for y in range(count - 1, -1, -1)]) |
| 220 | |
| 221 | |
| 222 | def labelcolormap(N): |