DATAPixx Demo 1 -- Setting up a gaze-contingent display with a DATAPixx ================================================================================== This demo contains more PTB commands than DATAPixx commands, it creates a gaze-contingent display using an overlay. In the DATAPixx, the overlay is defined as the right half of the display. We figure out what the gaze-contingent information is (or we simulate it in this demo), and we move the overlay bounds with the current gaze (or mouse) position. .. Tip:: This demo will only work on a **DATAPixx** .. literalinclude:: ../DatapixxToolbox/DatapixxDemos/DatapixxGazeContingentDemo.m :language: matlab :emphasize-lines: 78, 94, 107 :linenos: