Hi I have already figured out how to turn the mask of ElementArrayStim off. However, I still don't know how to draw an array of irregular shape with ElementArrayStim. The API says: the element of a dotStim could be none or a visual stimulus object. This can be any object that has a .draw() method and a .setPos([x,y]) method (e.g. a PatchStim, TextStim...)!! See ElementArrayStim for a faster implementation of this idea. So I assume that the I can draw an irregular shape as a visual.shapeStim, and then use this shapeStim as the element of the ElementArrayStim. Unfortunately, when I tried this way, it seems that the shapestim can not be called by ElementArrayStim.setTex() Any suggestion will be greatly appreciated! Thanks! Tao On Jun 24, 9:16�pm, Tao Gao <taogao....@gmail.com> wrote:
Hi, I�m trying to figure out how to draw any array of objects with the ElementArrayStim class. �Here is what I�m trying to do: 1. Define an irregular shape (Perhaps using the ShapeStim?) 2. Draw an array of this irregular shape with the ElementArrayStim. Here are my questions. 1. How to convert a ShapeStim to a texture object which can be called by the ElementArraySim? I see that I can save the ShapeStim as a .tif file, and then read it as a picture. However, I do want to know if there is any more direct way, without bothering to save a picture. 2. �I noticed that the ElementArrayStim is optimized for drawing gabor- like stimuli. This is great. However, it is not clear to me how to turn the mask and the filter of spatial-frequency off. In other words, if I have defined an irregular shape, and I want to draw *exactly* an array of that shape without any mask and filter, what should I do? Thanks very much!! Tao
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.