Hey!
I want to create an experiment in which exercises are shown when the operators are ‘clouds of points’ - meaning that two circles will be displayed on the sides of the screen, and within each circle a number of dots.
I understood that this should be written in code so that the dots can change randomly. I would like to know what should be written in ‘nDots’ (just insert the name of the variable (in the Excel file)?):
(in begin routine)
polygonL = visual.ShapeStim(
win=win, name=‘polygonL’,
size=(0.5, 0.5), vertices=‘circle’,
ori=0.0, pos=(-0.60, 0), anchor=‘center’,
lineWidth=1.0, colorSpace=‘rgb’, lineColor=[-1.0000, -1.0000, -1.0000], fillColor=[0.0039, 0.0039, 0.0039],
opacity=None, depth=0.0, interpolate=True)
dots2 = visual.DotStim(
win=win, name=‘dots’,
nDots=100, dotSize=10.0,
speed=0.0, dir=0.0, coherence=0.0,
fieldPos=(-0.6, 0.0), fieldSize=-0.43, fieldAnchor=‘center’, fieldShape=‘circle’,
signalDots=‘same’, noiseDots=‘direction’,dotLife=0.0,
color=[-1.0000, -1.0000, -1.0000], colorSpace=‘rgb’, opacity=None,
depth=-1.0)
polygonR = visual.ShapeStim(
win=win, name=‘polygonR’,
size=(0.5, 0.5), vertices=‘circle’,
ori=0.0, pos=(0.60, 0), anchor=‘center’,
lineWidth=1.0, colorSpace=‘rgb’, lineColor=[-1.0000, -1.0000, -1.0000], fillColor=[0.0039, 0.0039, 0.0039],
opacity=None, depth=0.0, interpolate=True)
dots1 = visual.DotStim(
win=win, name=‘dots1’,
nDots=100, dotSize=10.0,
speed=0.0, dir=0.0, coherence=0.0,
fieldPos=(0.6, 0.0), fieldSize=-0.43, fieldAnchor=‘center’, fieldShape=‘circle’,
signalDots=‘same’, noiseDots=‘direction’,dotLife=0.0,
color=[-1.0000, -1.0000, -1.0000], colorSpace=‘rgb’, opacity=None,
depth=-1.0)
In addition, how can times be inserted in the code? I want each variable to appear for 1.5ms. What I tried (in each frame):
if t <= 1.500:
polygonR.draw()
dots1.draw()
polygonL.draw()
dots2.draw()
Thanks!