if timer.getTime() >= 3:
textPoem.color = ânewColorâ
and it worked.
I have not entered any code to the Begin Experiment tab.
Is it okay?
Also, for time randomization (3.5 secs to 4.5 secs) of the fixation cross, I used the following code components. Please advise if it is correct as well.
fixDur = np.random.uniform(fixDurMin, fixDurMax) # random between minimum and maximum
thisExp.addData(âfixation_durationâ,fixDur) # document the duration in your logfile
Am I correct? Please advise. Many thanks for your help.
cool that you found a solution yourself. BTW, it is best to surround code with a triple `, then it is properly formatted.
With regard to your rand fixation duration. I donât see a reason why it shouldnât offline. I am not sure that it would online. It looks like you are importing a python-library which does not work online. Given that you draw only one value each time, uniform is not really needed. I use the following code to generate a random number from an interval
I would like to know that if I want to change again the colour of my text, will this code work? That time would it be from âoliveâ to ânewColor1â and âredâ to ânewColor2â? Or, shall I need to change from the scratch?