Thanks for getting onto this. I was wondering about a general Shape
Component that had a shape parameter with possible values =
['line','triangle','square','circle']. This would be passed to the
ShapeStim on its creation. For the user it means only one extra
component button (showing a triangle, circle and square in its icon?)
and for the developer it means fewer files to change if you want to
alter something. What do you think?
I think, in the code, a triangle can be called with either of;
visual.Triangle(win....)
visual.Polygon(win, edges=3, radius=[w,h],...)
and a circle is, essentially;
visual.Polygon(win, edges=32, radius=[w,h],...) #or more edges if
you want a more accurate circle
For a circle, although radius makes most sense as a term, the fact that
width and height allow you to create ellipses seems quite nice, and
makes it similar to the other stimuli.
For a custom set of vertices the easiest way to implement it is
certainly then to have a CustomShape Component. Maybe put that one in
the Custom category rather than Stimuli(?)
thanks again,
Jon
--
Jonathan Peirce
Nottingham Visual Neuroscience
http://www.peirce.org.uk
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.