get abstract method

num get(
  1. int index,
  2. int channel
)

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

num get(int index, int channel);