new TextStim(options, alignHorizopt, alignVertopt, wrapWidth, flipHorizopt, flipVertopt)
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
alignHoriz |
string |
<optional> |
'center' | horizontal alignment | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
alignVert |
string |
<optional> |
'center' | vertical alignment | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wrapWidth |
boolean | whether or not to wrapthe text horizontally | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
flipHoriz |
boolean |
<optional> |
false | whether or not to flip the text horizontally | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
flipVert |
boolean |
<optional> |
false | whether or not to flip the text 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:
- To Do:
-
- vertical alignment, and orientation are currently NOT implemented
Extends
- BaseVisualStim
Members
(private) _updateIfNeeded
Update the stimulus, if necessary.
- Source:
- To Do:
-
- take size into account
contains
Determine whether an object is inside the bounding box of the text.
- Source:
- To Do:
-
- this is currently NOT implemented
setAlignHoriz
Setter for the alignHoriz attribute.
- Source:
setBold
Setter for the bold attribute.
- Source:
setFlipHoriz
Setter for the flipHoriz attribute.
- Source:
setFlipVert
Setter for the flipVert attribute.
- Source:
setHeight
Setter for the height attribute.
- Source:
setItalic
Setter for the italic attribute.
- Source:
setText
Setter for the text attribute.
- Source:
setWrapWidth
Setter for the wrapWidth attribute.
- Source: