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 an object is inside the bounding box of the ShapeStim.
This is overridden in order to provide a finer inclusion test.
- Source:
setVertices
Setter for the vertices attribute.
- Source:
Methods
(protected) _estimateBoundingBox()
Estimate the bounding box.
- Source: