psychopy.org | Reference | Downloads | Github

Changing text colour in Form component

Hi there,

I was wondering if it was possible to change the colour of the text in the Form component. By default it’s set to white, but I have the background set to white so the text obviously doesn’t display. I tried using a .setColor approach but it didn’t work. I’m trying to add a consent form to the start of a pre-existing experiment that is white backgrounds so wanted to maintain continuity.

If it’s not possible to do, is it possible to set the background of just the Form to a black background while keeping all the others white?

Thanks,
Sara

1 Like

Hi @slorimer, you can change the color of the window quite easily using a code component. In the “Begin Routine” tab use either of the following

win.color = [-1, -1, -1] # black
win.color = [1, 1, 1] # white