nSteps {gridBezier} | R Documentation |
Calculate Steps for a Bezier Spline
Description
Calculate steps in t for drawing each Bezier curve within a Bezier spline.
Usage
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
nSteps(100)
nSteps(100)(range=0:1)
nSteps(100)(range=0:1/2)
[Package gridBezier version 1.1-1 Index]