set method
Set a specific channel value of the palette entry at index. If the
palette has fewer channels than channel, the value will be ignored.
Implementation
@override
void set(int index, int channel, num value) {
if (channel < numChannels) {
index *= numChannels;
data[index + channel] = Float16.doubleToFloat16(value.toDouble());
}
}