

- Stimulus duration framen psychopy movie#
- Stimulus duration framen psychopy archive#
- Stimulus duration framen psychopy software#
- Stimulus duration framen psychopy download#
The flash_change()function change the color of each square when called. The color of each square is attributed randomly. The ElementArrayStim contains a matrix of colored squares. The flash_init() function initialize flash an ElementArrayStim stimulus. The def_flash component contains the definition of the flash_init() and the flash_change() functions. The fl_p global variable contains the position (center) where the different objects will be drawn. Global fl_p # Where should the flash be drawn The def_set_positions component contains the definition of the set_positions() function. The l_s global variable contains the width of the frame surrounding the flash stimulus. The sq_s global variable contains the width of the flash stimulus. The f_s global variable contains the width of the frame square. Global l_s # line size (the width of the line surrounding the stimulus) Global sq_s # square size (square where the stimulus is shown) Global f_s # frame size (square) (frame surrounding the stimulus) When displayed, the flash stimulus replace the inner square. The frame is created with first drawing a square with the frame color and then drawing a smaller square, the same size as the flash stimulus, inside the first one. The def_set_sizes component contains the definition of the set_sizes() function. The sq_c global variable contains the color of the square where the flash simuli should appear. The f_c global variable contains the color for the frame surrounding the flash stimulus. The sc_c global variable contains the background color of the presentation window. The def_set_colors component contains the definition of the set_colors() function. The last routine replace the flash pattern with a soft grey square and wait for a key press to end the experiment. The third routine then replace the inner square with a continuously changing color pattern and wait for a key press to stop the flashing. The second routine show a soft grey square surrounded with a darker grey border and wait for a keyboard key to be pressed to continue. The first routine is used to initialise experiment data. The experiment is divided in four routines. A third method is to calculate the image to use with PsychoPy, and change the image regularly.
Stimulus duration framen psychopy movie#
A second method is to create a movie from a picture set and display this film. The image display order can be fixed or random. One method is based on a sufficiently large set of files of different images and display the images sequentially. There are many ways to present a moving picture. The square is surrounded with a 20 pixels wide grey border. The script will use a 400 pixels wide window and will show an animated pattern in a square of 200 pixels by side. This note assumes that you understand the basic operation of PsychoPy and have some knowledge of programming with Python. The flashing stimulus will only appear when running the later.
Stimulus duration framen psychopy archive#
The archive contains the Builder (continuous-flash.psyexp) and the modified Coder version (continuous-flash-coder.py).
Stimulus duration framen psychopy download#
You can download an archive of the PsychoPy documents described here ( psychopy-continuous-flash.zip). The script described here has been tested on OS X 10.9.4 with PsychoPy v1.80.06 and OS X 10.9.5 with PsychoPy v1.81.00.
Stimulus duration framen psychopy software#
PsychoPy is a software used in experimental psychology and cognitive neuroscience to present and control stimuli. Here we will use the PsychoPy software to display such a lively pattern. In general, these experiments use a colorful Mondrian-like pattern that changes regularly. One way to focus the attention is to present a flashing image. Some experiments need to focus the attention of the subjet to the screen.
