inflate method

void inflate(
  1. double amount
)

Implementation

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