Quantizes an individual color component.
component | the component to quantize. | |
newMaxCoordinate | the new upper-bound of color coordinate. Default value is 31, see example. |
the Nintendo DS, color components are encoded in 5 bits, thus they range in [0;31] and this method would be called with newMaxCoordinate = 31 to have the specified component scaled according to this range.