gridBezier (version 1.1-1)

nSteps: 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).

Value

BezierGrob produces a "BezierGrob" object.

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.

Examples

Run this code
# NOT RUN {
nSteps(100)
nSteps(100)(range=0:1)
nSteps(100)(range=0:1/2)
# }

Run the code above in your browser using DataCamp Workspace