Skip to contents

Creates a calibration list for use in the eye_scroll_correct function. Uses values taken by hand

Usage

scroll_calibration_manual(
  screen_width,
  screen_height,
  top_left_x,
  top_left_y,
  bottom_right_x,
  bottom_right_y,
  scroll_pixels
)

Arguments

screen_width

Resolution width of the screen on which the experiment is conducted (in pixels). E.g. 1920

screen_height

Resolution height of the screen on which the experiment is conducted (in pixels). E.g. 1080

top_left_x

x coordinate of the top left pixel of the browser viewing area

top_left_y

y coordinate of the same pixel

bottom_right_x

x coordinate of the bottom right pixel of the browser viewing area

bottom_right_y

y coordinate of the same pixel

scroll_pixels

The amount of pixels being scrolled by each mouse scroll (depends on the browser). Output by the calibration webpage

Value

A list representing the calibration to the screen & browser used for the experiment

Examples

calibration <- scroll_calibration_manual(1920, 1080, 88, 0, 40, 0, 100)