I have 3 routines in a trial.
The first routine displays stimuli and collects responses. The stimuli consist of displaying two numbers on either side of the screen in a colored square. The two numbers and the color of squares are counterbalanced across trials. The participant has to give the response by choosing from either of the numbers.
The second routine is a blank screen and its duration depends on the response on the first routine.
The third routine in the trial gives feedback based on the response in the first routine. This feedback consists of a text message and the colored screen based on the response.
I am able to provide the correct feedback text message but unable to color the screen.
To color the screen I am using a polygon whose color is variable but I am unable to get the color used for colored square chosen by the participant in a given trial.
I have attached my pics of conditions file and experiment flow as follows: