Constructor
new ShapeStim(options)
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
- Mixes In:
- ColorMixin
- Source:
Extends
- VisualStim
Members
(static, readonly) KnownShapes
Known shapes.
- Source:
(private) _getPolygon
Get the PIXI polygon (in pixel units) corresponding to the vertices.
- Source:
(protected) _getVertices_px
Get the vertices in pixel units.
- Source:
(private) _updateIfNeeded
Update the stimulus, if necessary.
- Source:
contains
Determine whether this stimulus contains the given object.
- Source:
refresh
Force a refresh of the stimulus.
- Source:
setFillColor
Setter for the fill color attribute.
- Source:
setLineColor
Setter for the line color attribute.
- Source:
setLineWidth
Setter for the line width attribute.
- Source:
setSize
Setter for the size attribute.
- Source:
setVertices
Setter for the vertices attribute.
- Source: