nSteps: Calculate Steps for a Bezier Spline

Description Usage Arguments Details Value Author(s) Examples

View source: R/bezier.R View source: R/quad.R

Description

Calculate steps in t for drawing each Bezier curve within a Bezier spline.

Usage

1
nSteps(n)

Arguments

n

The number of steps (assuming a range of t from 0 to 1).

Details

This function generates a function that can be used as the stepFn argument to grid.Bezier. It will simply generate n values in the range 0 to 1, though if range is also provided, the number of steps is reduced (see the examples below). A minimum of 2 steps will be generated.

Value

BezierGrob produces a "BezierGrob" object.

Author(s)

Paul Murrell

Examples

1
2
3
nSteps(100)
nSteps(100)(range=0:1)
nSteps(100)(range=0:1/2)

gridBezier documentation built on May 22, 2019, 5:02 p.m.