A classic cognitive interference paradigm (Stroop, 1935). Participants name the ink colour of colour words, ignoring the word’s meaning. Responses are slower and more error-prone when the word and ink colour conflict (incongruent) than when they match (congruent).
Fixation cross → Colour word → Response → ITI
500 ms until key key press 500 ms
| Key | Ink colour |
|---|---|
R |
Red |
G |
Green |
B |
Blue |
Y |
Yellow |
sudo apt install libsdl3-dev on Ubuntu/Debian)# Fullscreen
go run main.go
# Windowed (development / testing)
go run main.go -d
| Flag | Default | Description |
|---|---|---|
-d |
off | Development mode: windowed 1024×768 |
Data are saved to goxpy_data/ as a .xpd file (CSV with a metadata header). One row per trial:
| Column | Description |
|---|---|
trial |
Trial number |
word |
The displayed word |
ink_color |
The ink colour |
response |
Key pressed |
rt |
Reaction time in milliseconds |
correct |
Whether the response was correct |
congruent |
true if word meaning matches ink colour |
Stroop, J. R. (1935). Studies of interference in serial verbal reactions. Journal of Experimental Psychology, 18(6), 643–662. https://doi.org/10.1037/h0054651