ElementArrayStim

class psychopy.visual.ElementArrayStim(*args, **kwargs)[source]

This stimulus class defines a field of elements whose behaviour can be independently controlled. Suitable for creating ‘global form’ stimuli or more detailed random dot stimuli. This is a lazy-imported class, therefore import using full path from psychopy.visual.elementarray import ElementArrayStim when inheriting from it.

This stimulus can draw thousands of elements without dropping a frame, but in order to achieve this performance, uses several OpenGL extensions only available on modern graphics cards (supporting OpenGL2.0). See the ElementArray demo.

Parameters:
win :

a Window object (required)

unitsNone, ‘height’, ‘norm’, ‘cm’, ‘deg’ or ‘pix’

If None then the current units of the Window will be used. See Units for the window and stimuli for explanation of other options.

nElements :

number of elements in the array.


Back to top