Hello all,
In my experiment, I aim to manipulate the brightness of some sentences using RGB255 color space. I wrote the following code:
# In the begin routine:
rg = []
if Brightness == "High":
rnd = np.random.normal(30, 1)
rndInt = int (rnd)
rg.append ("{},{},{}".format (rndInt ,rndInt ,rndInt ))
elif Brightness == "Low":
rnd = np.random.normal(40, 1)
rndInt = int (rnd)
rg.append ("{},{},{}".format (rndInt ,rndInt ,rndInt ))
vocabs.setColor(rg, colorSpace='rgb255')
# In the end routine:
thisExp.addData ("RGB", rg)
However, I face with an error regarding the float number. Is the way that I append the random number to the list is problematic?