Oh doh, I forgot that round255f doesn't just round, it scaled too. Triple-doh. But it really should be named something like roundAndScale as one would expect a method called round255f to just round to the nearest 255th.