NOTE: For the purposes of subsequent demos we rarely specify timing precisely. For example, you might want to update the stimulus every second, rather then at the frame rate of your monitor, as in "Accurate Timing Demo".
#Psychopy draw line how to
Wait Frames Demo: Here we demonstrate how to update an image on the screen at a rate different to that of the monitors refresh rate. For presenting a stimulus which is unchanging, or changes less frequently then each frame, see the next demo. Please read the extensive comments in the demo closely, they are important and should not be ignored. I demonstrate varying degrees of potential accuracy. (Movie and Code)Īccurate Timing Demo: This demo shows three basic ways in which to present a stimulus which would change on each frame. This demos how to get pretty much all the basic info you will need about the screen. Totally Minimal Demo #2: This is the same as "TotallyMinimalDemo", except after opening the window we query numerous things about it. But it demonstrates pretty much the steps you will always use when starting a program i.e. Totally Minimal Demo: This demo aims to be as minimal as possible. PTB is now primary developed for Linux, reduced functionality and support is provided for Windows and OSX, so one would need to bear this in mind when interpreting any response. If you have problems with core PTB functionality ask questions there.
![psychopy draw line psychopy draw line](https://cdn5.vectorstock.com/i/1000x1000/71/44/skull-drawing-line-work-vector-14377144.jpg)
PTB has an active forum which can be found here. I provide no guarantees that the demos provide "best practice" for your specific needs. The demos provided as an educational resource. Please make sure you carefully read the comments in the code as these provide an explanation of why things are done the way they are. If you are not clear on the essentials, you will struggle with the more difficult aspects. For all users I strongly suggest looking at sections (1) and (2) as these show essential features which will help get you up to speed coding in Matlab and PTB. There are around 40 demos on this site and these are organised into sections based on learning different aspects of PTB. If you have previously installed PTB I recommend you use the "UpdatePsychtoolbox" command to get the latest version.
#Psychopy draw line install
To get started you will need to have installed Matlab or Octave (a free version of Matlab) and followed the install instructions which are provided on the PTB website. The aim of these demos is to provide an introduction to how to program using Psychtoolbox (PTB).