svgControlPoints: Get Control Points

Description Usage Arguments Value Examples

View source: R/mask.R

Description

Get Control Points

Usage

1
svgControlPoints(x0, y0, x1, y1, x2, y2, t = 0.3)

Arguments

x0, y0

coordinates of previous point

x1, y1

coordinates of main point

x2, y2

coordinates of next point

t

curving factor (0-1)

Value

x- and y-coordinates of control points (x1, y1, x2, y2)

Examples

1
svgControlPoints(10, 10, 20, 20, 30, 10)

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