get method

T get(
  1. Pos pos
)

Returns the pixel at the given position.

If outside the bounds of the buffer, returns a suitable zero value.

Implementation

T get(Pos pos) => contains(pos) ? getUnsafe(pos) : format.zero;