The number of channels used by the color.
@override int get length => palette?.numChannels ?? image.numChannels;