CenterRectOnPoint - aleslab/Psychtoolbox-3-aleslab-fork GitHub Wiki

newRect = CenterRectOnPoint(rect,x,y)

CenterRectOnPoint offsets the rect to center it around an x and y position.
The center of the rect is reported by RectCenter.

See also PsychRects, RectCenter

Path   Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychRects/CenterRectOnPoint.m
⚠️ **GitHub.com Fallback** ⚠️