Template: Circular Gaze Contingent Window
Circular Gaze Contingent Window

Required Experiment Builder Version: 1.4.218 or greater
EyeLink Required: Yes
Type: Complete Example
Difficulty Level: Medium

This example demonstrates:
  • How to create a gaze contingent window
  • How to use Custom Class and transparency effects to create a clipping mask

Example of gaze-contingent Elliptical Moving Window implemented using Custom Class (CC) Drawing. The project uses a Foreground image, Background image, and a Mask image resource in the Display Screen node that handles the drawing. This Mask image has a grey circle with a magenta border. The transparency color of the project is set to the same RGB value as the grey circle to render it invisible. The red border corresponds to the transparency color value defined in the CC node. When the project runs, the CC code draws the foreground on top of the background and then adds the mask on top of the foreground image with the appropriate transparency effect to create an elliptical window.  The mask can be swapped out with any other shape to achieve the desired effect.

**Additional detailed information about the project is given in the notes section for most nodes. To see notes for a given node, either mouse over that node or click on it to display the notes window. If the notes window is not visible, go to the "View" drop-down menu in Experiment Builder, select "Properties", and check "Note".
  1. Download the GC_Circular_window.ebz example from this message.
  2. Unzip the GC_Circular_window.ebz file to a location on your Experiment Builder PC.
  3. Launch the Experiment Builder application,
  4. Open the project in Experiment Builder.
  5. Deploy the project to a new folder.
  6. Run the GC_Circular_window.exe from the deployed directory.

.ebz   GC_Circular_window.ebz (Size: 400.8 KB / Downloads: 55)