setRed abstract method

void setRed(
  1. int index,
  2. num value
)

Set the red channel of the palette entry at index. If the palette has fewer colors or channels, it will be ignored.

Implementation

void setRed(int index, num value);