AOI: Convert pixel locations of an image to proportion-on-screen...

Description Usage Arguments Value

Description

AOI is a utility function for converting the pixel locations of the x- and y-boundaries of an image to screen proportions. Note that the coordinate (0,0) is the lower-left corner of the screen.

Usage

1
2
AOI(x_pix, y_pix, width = lwl_constants$screen_width,
  height = lwl_constants$screen_height)

Arguments

x_pix

location (in pixels) of the left and right edges of the AOI

y_pix

location (in pixels) of the upper and lower edges of the AOI

width

width of the screen (in pixels)

height

height of the screen (in pixels)

Value

A list of the form list(x = (left_prop, right_prop), y = (lower_prop, upper_prop)), where prop values describe the locations of the boundaries in terms of screen proportion.


tjmahr/lookr documentation built on May 31, 2019, 3:41 p.m.