1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-10 10:40:54 +00:00

ENH: Add other shapes from Python to ShapeStim

This commit is contained in:
Todd Parsons 2022-07-14 11:09:12 +01:00
parent 04669d28b3
commit 11bddceb80

View File

@ -372,6 +372,19 @@ ShapeStim.KnownShapes = {
[-0.09, 0.18],
],
triangle: [
[+0.0, 0.5], // Point
[-0.5, -0.5], // Bottom left
[+0.5, -0.5], // Bottom right
],
rectangle: [
[-.5, .5], // Top left
[ .5, .5], // Top right
[ .5, -.5], // Bottom left
[-.5, -.5], // Bottom right
],
arrow: [
[0.0, 0.5],
[-0.5, 0.0],