Uniformize getDigitSize code with the previous fix’s. It returns the same results except when palette.length === 0: it now returns 0 instead of -Infinity. It’s also probably easier to grasp, and more efficient.
Uniformize getDigitSize code with the previous fix’s.
It returns the same results except when palette.length === 0: it now returns 0 instead of -Infinity.
It’s also probably easier to grasp, and more efficient.

FullScreenShenanigans/PixelRendr