def percentToByte(percent): return int(percent * 255 / 100)