visigoth.stimuli.Points

class visigoth.stimuli.Points(win, pos, radius=0.15, color=1, **kwargs)[source]

Wrapper for multiple psychopy.visual.Circle objects.

In addition to the abstractions afforded by the Point object, this object also allows you to set the color with a single color or list of colors. The color property will always return a list with the number of colors equating to the number of points.

Performance will suffer for a large number of objects – in that case, you should use an ElementArrayStim.

It is intended to be used for, e.g., saccade targets.

__init__(win, pos, radius=0.15, color=1, **kwargs)[source]

Create the psychopy stimulus objects.

Parameters
winpsychopy Window

Open PsychoPy window that the stimuli will be linked to.

poslist of tuples

List of point positions, in win units.

colorsingle PsychoPy color or list of colors.

Initial color(s) for all or each points.

radiusfloat

Size of the point in win units.

kwargskey, value mappings

Other keyword arguments are passed to psychopy.visual.Circle.

Methods

__init__(win, pos[, radius, color])

Create the psychopy stimulus objects.

draw()

Attributes

color