create_grapheme: Create a grapheme instance

Description Usage Arguments Examples

View source: R/create_grapheme.R

Description

Takes in a symbol/grapheme and sets of response times/colors, then creates a Grapheme instance that holds the passed information and returns it.

Usage

1
2
3
4
5
6
create_grapheme(
  symbol,
  response_times = NULL,
  response_colors,
  color_space_spec = "Luv"
)

Arguments

symbol

A one-element character vector holding a symbol/grapheme.

response_times

(optional) A numeric vector. Times from presentation to response, in order.

response_colors

A character vector. Response colors, as hex color codes.

color_space_spec

A one-element character vector. What color space is to be used? The following color spaces are supported: "XYZ", "sRGB", "Apple RGB", "Lab", and "Luv"

Examples

1
2
create_grapheme(symbol="a", response_times=c(2.3, 6.7, 0.4),
response_colors=c("84AE99", "9E3300", "000000"), color_space_spec="Luv")

synr documentation built on Nov. 25, 2021, 1:06 a.m.