Issue posting an eyes-open task on Pavlovia

Description of the problem: I’m encountering an issue converting the Python code to PsychoJS for an eyes-open task. The first error is that psychoJS.window.flip(), corresponding to win.flip(), is not a function. I have searched and found a post suggesting that win.flip() may not be necessary. After commenting it out and deleting psychoJS.window.flip(), the task ran fine on PsychoPy but encountered an issue on Pavlovia. Instead of displaying a white background with a cross as intended, it shows a black background. Can anyone help with this problem?

Since your code component type is “Both” then you haven’t deleted psychoJS.window.flip();.

Personally I use 2x2 norm unit polygon rectangles at the top of the routine if I want to change the background colour mid experiment and Experiment Settings / Screen if I don’t.

However, you could try editing your JS code to:

psychoJS.window.color = new util.Color("white");

(if you want a white BG as per your text as opposed to a black background as per your code)