setAlpha abstract method

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

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

Implementation

void setAlpha(int index, num value);