| Reference | Downloads | Github

Creating "number array"

Hi everyone,

I would like to create an array composed by numbers, instead of dots.
I give an example in my image.
I would like to define a value that will be presented (10, 20, …) and the numbers of occurrence on my image (3 positions, 4, …). The positions can be randomized.

Does anyone have an idea about the procedure ?

Thanks !

There is the ElementArrayStim that is optimised for drawing multiple occurrences of the same image:

There is a demo in the Coder view’s Demos -> Stimuli menu. I’m not sure, but you might have to create bitmaps of each of number values, and use those as the textures for the ElementArrayStim. Changing the positions is then just a matter of manipulating the list of x,y coordinates.