static Rect rectAround(Pt p, int w, int h) { ret new Rect(p.x-w/2, p.y-h/2, w, h); }