This is a Go implementation of the HCP Retinotopic Mapping experiment, ported from the Python version developped by Christophe Pallier and Bosco Taddei.
python3 Retinotopy/h5topng.py
By default, the experiment starts in FULLSCREEN mode.
Starts in 1280x1024 fullscreen mode with the 768x768 stimulus centered.
go run examples/retinotopy/main.go -s 0 -r 1
Starts in a 900x900 window with the 768x768 stimulus centered.
go run examples/retinotopy/main.go -s 0 -r 1 -d
-s <id>: Subject ID (default: 0).-r <id>: Run ID (1-6).
1: RETBAR1 (Swiping Bars)2: RETBAR2 (Swiping Bars)3: RETCCW (Counter-Clockwise Wedge)4: RETCW (Clockwise Wedge)5: RETEXP (Expanding Circles)6: RETCON (Contracting Circles)-d: Enable Development mode (windowed display).--scaling <factor>: Scaling factor for stimuli, grid and fixation dot (default: 1.0).-F: Force Fullscreen (default behavior).Results are saved as .xpd files in the data/ directory, containing frame-by-frame timing and event logs.