Template: On-Screen Drawing
#1
On-Screen Drawing

Required Experiment Builder Version: 2.3.38 or higher
EyeLink Required: Yes
Type: Complete Example
Difficulty Level: Medium

This example demonstrates:
  • How to create a Mouse Contingent Image Resource
  • How to use Custom Class to draw lines using the mouse cursor
  • How to save images generated by Custom Class
Description:

This project uses Custom Class to allow you to draw on top of another image using the mouse cursor. When the participant clicks the mouse the drawing begins and stops when the button is released. This can be repeated any number of times until a Keyboard press ends the trial and saves the image drawn.

**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".

Instructions:
  1. Download the OnScreenDrawing.ebz example from this message.
  2. Launch the Experiment Builder application.
  3. Unpack the OnScreenDrawing.ebz file to a location on your Experiment Builder PC with "File menu -> Unpack".
  4. Open the project in Experiment Builder.
  5. Deploy the project to a new folder.
  6. Run the OnScreenDrawing.exe from the deployed directory.


.ebz   OnScreenDrawing.ebz (Size: 282.16 KB / Downloads: 24)