mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-12 08:38:10 +00:00
Merge pull request #245 from thewhodidthis/bf#244--close-shape
visual/ShapeStim: set closeStroke on PIXI polygon creation
This commit is contained in:
commit
bfa460e419
@ -311,6 +311,7 @@ export class ShapeStim extends util.mix(VisualStim).with(ColorMixin, WindowMixin
|
|||||||
|
|
||||||
// destroy the previous PIXI polygon and create a new one:
|
// destroy the previous PIXI polygon and create a new one:
|
||||||
this._pixiPolygon_px = new PIXI.Polygon(coords_px);
|
this._pixiPolygon_px = new PIXI.Polygon(coords_px);
|
||||||
|
this._pixiPolygon_px.closeStroke = this._closeShape;
|
||||||
return this._pixiPolygon_px;
|
return this._pixiPolygon_px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user