setBlue method

void setBlue(
  1. int x,
  2. int y,
  3. num c
)

Set the value of the blue channel at the given pixel coordinates x, y.

Implementation

void setBlue(int x, int y, num c) {
  if (green != null) {
    if (blue!.isFloat) {
      blue!.setFloat(x, y, c);
    } else {
      blue!.setInt(x, y, c as int);
    }
  }
}