MinimalStim

core MinimalStim

MinimalStim is the base class for all stimuli.

Constructor

new MinimalStim(options)

Source:
Parameters:
Name Type Description
options Object
Properties
Name Type Attributes Default Description
name String

the name used when logging messages from this stimulus

win module:core.Window

the associated Window

autoDraw boolean <optional>
false

whether or not the stimulus should be automatically drawn on every frame flip

autoLog boolean <optional>
win.autoLog

whether to log

Extends

  • PsychObject

Methods

(abstract, protected) _updateIfNeeded()

Source:

Update the stimulus, if necessary.

Note: this is an abstract function, which should not be called.

(abstract) contains(object, units)

Source:

Determine whether an object is inside this stimulus.

Parameters:
Name Type Description
object Object

the object

units String

the stimulus units

draw()

Source:

Draw this stimulus on the next frame draw.

hide()

Source:

Hide this stimulus on the next frame draw.

release(logopt)

Source:

Release the PIXI representation, if there is one.

Parameters:
Name Type Attributes Default Description
log boolean <optional>
false

whether to log

setAutoDraw(autoDraw, logopt)

Source:

Setter for the autoDraw attribute.

Parameters:
Name Type Attributes Default Description
autoDraw boolean

the new value

log boolean <optional>
false

whether to log