1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-11 16:18: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:
Alain Pitiot 2021-02-15 09:50:51 +01:00 committed by GitHub
commit bfa460e419
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -311,6 +311,7 @@ export class ShapeStim extends util.mix(VisualStim).with(ColorMixin, WindowMixin
// destroy the previous PIXI polygon and create a new one:
this._pixiPolygon_px = new PIXI.Polygon(coords_px);
this._pixiPolygon_px.closeStroke = this._closeShape;
return this._pixiPolygon_px;
}