svgBezier: Construct Bezier Curves from Template Points

Description Usage Arguments Value Examples

View source: R/mask.R

Description

Construct Bezier Curves from Template Points

Usage

1
svgBezier(v, idx = 1)

Arguments

v

matrix of template points with x and y as rows and point as columns

idx

index of line segment within the path

Value

string with path component

Examples

1
2
3
4
5
6
stimuli <- demo_stim()
# get upper and lower eye points
l_upper <- stimuli$f_multi$points[, 18:22]
l_lower <- stimuli$f_multi$points[, c(22, 30, 29, 28, 18)]
svgBezier(l_upper, 1)
svgBezier(l_lower, 2)

facelab/webmorph documentation built on April 11, 2021, 6:34 a.m.