new ImageStim(options)
Image Stimulus.
Parameters:
Name |
Type |
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 the 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
|
<optional>
|
'norm'
|
the units of the stimulus vertices, size and position |
ori |
number
|
<optional>
|
0.0
|
the orientation (in degrees) |
size |
number
|
<optional>
|
|
the size of the rendered image (the size of the image will be used if size is not specified) |
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 |
autoDraw |
boolean
|
<optional>
|
false
|
whether or not the stimulus should be automatically drawn on every frame flip |
autoLog |
boolean
|
<optional>
|
false
|
whether or not to log |
|
- Mixes In:
- Source:
Extends
Members
(private) _getDisplaySize
Get the size of the display image, which is either that of the ImageStim or that of the image
it contains.
- Source:
(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 image attribute.
- Source:
setImage
Setter for the mask attribute.
- Source: