deflate method

void deflate(
  1. double amount
)

Implementation

void deflate(double amount) {
  position.x += amount;
  position.y += amount;
  width -= amount * 2;
  height -= amount * 2;
}