Calculates the pixel offset for an element based on a screen anchor.
The screen corner or center to anchor to.
Width of the UI element in pixels.
Height of the UI element in pixels.
An {x, y} offset object.
Calculates the pixel offset for an element based on a screen anchor.