setIdentity method

void setIdentity()

Sets this block to the identity. Only meaningful for a square view.

Implementation

void setIdentity() {
  fill(0);
  for (var i = 0; i < rows; i++) {
    set(i, i, 1);
  }
}