curveStep function Curves

Curve curveStep(
  1. Path context
)

Produces a piecewise constant function (a step function) consisting of alternating horizontal and vertical lines.

The y-value changes at the midpoint of each pair of adjacent x-values.

Implementation

Curve curveStep(Path context) => CurveStep(context, 0.5);