colormap: Explicitly use integer division operator.

Division behaves differently in Python 2 and Python 3; in Python 3, an
integer is converted to a float when divided. To get consistent and
deterministic behavior regardless of the version of Python being used,
use the // integer division operator for this one calculation.