method
Rect.center
Rect.center(r) -> Vector
Returns the center point (x + w/2, y + h/2) as a Vector — the anchor you want when placing a label or spawning at the middle of a box.
Example
program Demo {
handler Step phase Update {
let mid = Rect.center(hud)
}
}