set method

  1. @override
void set(
  1. Pos pos,
  2. Float32x4 pixel
)
inherited

Sets the pixel at the given position.

If outside the bounds of the buffer, does nothing.

Implementation

@override
void set(Pos pos, T pixel) {
  if (contains(pos)) {
    setUnsafe(pos, pixel);
  }
}