Changing color/colour of text in code component builder view

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 1.85.2

What are you trying to achieve?: I am trying to change the colour of feedback on a simple word categorisation task. When it is correct I want to state “correct!” in black font but when it is incorrect I want to present a red “X” and loop the user back to answer the question again. I have got this working (with the snapshots below) but I can’t get the colour of the X to be red. Is there any way to code this in the code component in builder view? There is no error message but it just doesn’t work. Thanks in advance.

What specifically went wrong when you tried that?:

image

Hi @dougiedower1000, you need to use setColor for your text stim, see the docs.