GEJ1 / draw-and-mouse-tracking

New JsPsych plugin for draw in canvas and cursor position tracking

Repository from Github https://github.comGEJ1/draw-and-mouse-trackingRepository from Github https://github.comGEJ1/draw-and-mouse-tracking

draw-and-mouse-tracking

New JsPsych plugin for draw in canvas and cursor position tracking

🧠 You can see it an working example running on Cognition.run:

draw and mouse tracking jsPsych plugin example gif

Parameters:

  • Images to present
  • canvas_background_color
  • content_wrapper_color
  • Draw line color
  • Line width
  • Canvas size

Data Generated:

  • pos_tracking: The X and Y position of the cursor in the canvas while you are drawing.
  • cursor_time : The time relative to the start of the trial for every (X,Y) position. (This can be useful to calculate velocity)
  • X_click: The position of the click in X coordinate.
  • Y_Click: The position of the click in Y coordinate.
  • rt: trial_duration

About

New JsPsych plugin for draw in canvas and cursor position tracking


Languages

Language:JavaScript 75.0%Language:HTML 25.0%