Skip to contents

Creates a calibration list for use in the eye_scroll_correct function. Uses a screenshot of a full screen including the calibration webpage

Usage

scroll_calibration_auto(calibration_image, scroll_pixels)

Arguments

calibration_image

The screenshot, loaded as a large array (e.g. using readPNG)

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

if (FALSE) {
library(png)
img <- readPNG("calibrate.png")
calibration <- scroll_calibration_auto(calibration_image = img, scroll_pixels = 100)
}