Hi. I am trying to randomly assign some RGB values to my text stim. I used the code below and added $rgbColor to my text color space but it seems that it uses RGB (-1 to 1). I could not find RHB225 in the textstim color space. Moreover, I got an error when I left the color part of my text blank.
The interesting part is that I used the last method in one of my previous experiments but now, it is not working. Any idea of how we can use RGB225 or convert it to usual RGB?
Thanks
rgbColor = []
if BrightNum == 1: #High Brightness
random_rgb = int (np.random.normal(30, 1))
rgbColor.append (random_rgb)
rgbColor.append (random_rgb)
rgbColor.append (random_rgb)
elif BrightNum == 0: #Low Brightness
random_rgb = int (np.random.normal(40, 1))
rgbColor.append (random_rgb)
rgbColor.append (random_rgb)
rgbColor.append (random_rgb)
myText.setColor(rgbColor, colorSpace='rgb255')