ssciwr / vstt

Visuomotor Serial Targeting Task (VSTT)
https://vstt.readthedocs.io
MIT License
0 stars 0 forks source link

color contrast and visual feedback when reaching targets #263

Open lkeegan opened 9 months ago

lkeegan commented 9 months ago

Some of the older people had some difficulties seeing the circles and recognizing if they correctly reached them. We, therefore, wondered whether it would be possible:

lkeegan commented 1 month ago

As discussed with @ZoeJacky the initial plan is to make the target go from red to green when the cursor hits it, and it would then stay green until the next target becomes red, rather than for a fixed amount of time. This is simpler to implement, and also avoids having multiple coloured targets displayed at the same time, which may be confusing.

A possible implementation could be to add a new variable e.g. green_target_index=None here: https://github.com/ssciwr/vstt/blob/d866c0832ee7c4064ac6c0801cf4b61daf41ce50/src/vstt/task.py#L289

Then in the loop below make the target with index green_target_index green.

At the end of the loop where success is determined, green_target_index can be updated accordingly: https://github.com/ssciwr/vstt/blob/d866c0832ee7c4064ac6c0801cf4b61daf41ce50/src/vstt/task.py#L407-L410