setPixelR method

void setPixelR(
  1. int x,
  2. int y,
  3. num i
)

Set the red (or index) color channel of a pixel.

Implementation

void setPixelR(int x, int y, num i) => data?.setPixelR(x, y, i);