Class: ImageStim

visual.ImageStim(options, flipHorizopt, flipVertopt)

new ImageStim(options, flipHorizopt, flipVertopt)

Image Simulus.
Parameters:
Name Type Attributes Default Description
options Object
Properties
Name Type Attributes Default Description
name String the name used when logging messages from this stimulus
win Window the associated Window
image string | HTMLImageElement the name of the image resource or HTMLImageElement corresponding to the image
mask string | HTMLImageElement the name of the mask resource or HTMLImageElement corresponding to the mask
units string <optional>
"norm" the units of the stimulus (e.g. for size, position, vertices)
pos Array.<number> <optional>
[0, 0] the position of the center of the stimulus
units string the units of the stimulus vertices, size and position
ori number the orientation (in degrees)
size number the size
color Color <optional>
Color('white') the background color
opacity number <optional>
1.0 the opacity
contrast number <optional>
1.0 the contrast
depth number <optional>
0 the depth
texRes number <optional>
128 the resolution of the text
interpolate boolean <optional>
false whether or not the image is interpolated
flipHoriz boolean <optional>
false whether or not to flip horizontally
flipVert boolean <optional>
false whether or not to flip vertically
options.autoDraw boolean <optional>
false whether or not the stimulus should be automatically drawn on every frame flip
options.autoLog boolean <optional>
false whether or not to log
Mixes In:
  • ColorMixin
Source:

Extends

  • BaseVisualStim

Members

(private) _updateIfNeeded

Update the stimulus, if necessary.
Source:

contains

Determine whether the given object is inside this image.
Source:

setFlipHoriz

Setter for the flipHoriz attribute.
Source:

setFlipVert

Setter for the flipVert attribute.
Source:

setImage

Setter for the mask attribute.
Source:

setImage

Setter for the image attribute.
Source: