Constructor
new BaseShapeStim(options)
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
- Mixes In:
- ColorMixin
- Source:
Extends
- BaseVisualStim
Methods
(private) _getPolygon() → {Object}
Get the PIXI polygon (in pixel units) corresponding to the vertices.
- Source:
Returns:
the PIXI polygon corresponding to this stimulus vertices.
- Type
- Object
(private) _updateIfNeeded()
Update the stimulus, if necessary.
- Source:
contains(object, units) → {boolean}
Determine whether this stimulus contains the given object.
Parameters:
Name | Type | Description |
---|---|---|
object |
Object | the object |
units |
string | the units |
- Source:
Returns:
whether or not the stimulus contains the object
- Type
- boolean
setFillColor(fillColor, logopt)
Setter for the fill color attribute.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
fillColor |
Color | the fill color | ||
log |
boolean |
<optional> |
false | whether of not to log |
- Source:
setLineColor(lineColor, logopt)
Setter for the line color attribute.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
lineColor |
Color | the line color | ||
log |
boolean |
<optional> |
false | whether of not to log |
- Source:
setLineWidth(lineWidth, logopt)
Setter for the line width attribute.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
lineWidth |
number | the line width | ||
log |
boolean |
<optional> |
false | whether of not to log |
- Source:
setVertices(vertices, logopt)
Setter for the vertices attribute.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
vertices |
Array.<Array.<number>> | the vertices | ||
log |
boolean |
<optional> |
false | whether of not to log |
- Source: