get method
Get the the value of a specific channel
of the palette entry at index
.
If the palette has fewer colors than index
or fewer channels than
channel
, 0 will be returned.
Implementation
@override
num get(int index, int channel) => channel < numChannels
? Float16.float16ToDouble(data[index * numChannels + channel])
: 0.0;