visigoth.stimuli.Pattern¶
- class visigoth.stimuli.Pattern(win, n, pos=(0, 0), contrast=None, **kwargs)[source]¶
Contrast pattern created by averaging oriented gratings.
- __init__(win, n, pos=(0, 0), contrast=None, **kwargs)[source]¶
Initialize the psychopy object.
This object ultimately wraps a PsychoPy ElementArrayStim object, which draws a number of GratingStim objects with high performance.
Keyword arguments should correspond to ElementArrayStim.
Methods
__init__
(win, n[, pos, contrast])Initialize the psychopy object.
counterphase
()Advance all phases by half a cycle.
draw
()Draw the element array on the window.
randomize_phases
([rng, limits])Set the phase of each underlying grating to a random value.
Attributes
contrast
Visual contrast of the pattern.
pos
Position of the elements.