Please re-write the expressions to make the effect clearer:
```js
centerRotX += (padding[3] - padding[1]) * resolution / 2;
```