__init__(self,
win,
units=None,
fieldPos=(0.0, 0.0),
fieldSize=(1.0, 1.0),
fieldShape='circle',
nElements=100,
sizes=2.0,
xys=None,
rgbs=(1.0, 1.0, 1.0),
opacities=1.0,
depths=0,
fieldDepth=0,
oris=0,
sfs=1.0,
contrs=1,
phases=0,
elementTex='sin',
elementMask='gauss',
texRes=48)
(Constructor)
| source code
|
:Parameters:
win :
a :class:`~psychopy.visual.Window` object (required)
units : **None**, 'norm', 'cm', 'deg' or 'pix'
If None then the current units of the :class:`~psychopy.visual.Window` will be used.
See :ref:`units` for explanation of other options.
fieldPos :
The centre of the array of elements
fieldSize :
The size of the array of elements (this will be overridden by setting explicit xy positions for the elements)
fieldShape :
The shape of the array ('circle' or 'sqr')
nElements :
number of elements in the array
sizes :
an array of sizes Nx1, Nx2 or a single value
xys :
the xy positions of the elements, relative to the field centre (fieldPos)
rgbs :
specifying the color(s) of the elements.
Should be Nx1 (different greys), Nx3 (different colors) or 1x3 (for a single color)
opacities :
the opacity of each element (Nx1 or a single value)
depths :
the depths of the elements (Nx1), relative the overall depth of the field (fieldDepth)
fieldDepth :
the depth of the field (will be added to the depths of the elements)
oris :
the orientations of the elements (Nx1 or a single value)
sfs :
the spatial frequencies of the elements (Nx1, Nx2 or a single value)
contrs :
the contrasts of the elements, ranging -1 to +1 (Nx1 or a single value)
phases :
the spatial phase of the texture on the stimulus (Nx1 or a single value)
elementTex :
the texture, to be used by all elements (e.g. 'sin', 'sqr',.. , 'myTexture.tif', numpy.ones([48,48]))
elementMask :
the mask, to be used by all elements (e.g. 'circle', 'gauss',.. , 'myTexture.tif', numpy.ones([48,48]))
texRes :
the number of pixels in the textures (overridden if an array or image is provided)
|