Margrete RPC

crease

attribute__all__
= ['crease']
funccrease(base, *, count, x_range, h_range=0) -> Curve

Zigzag a curve around base with alternating lane offsets.

The first and last turning points land exactly on base; interior points alternate between +x_range and -x_range offsets. h_range applies the same offsets to height.

parambaseCurve

The curve to zigzag around.

paramcountint

Number of legs (at least 2).

paramx_rangeint

Lane offset amplitude for interior turning points.

paramh_rangeint
= 0

Height offset amplitude, in phase with x_range.

Returns

margrete_rpc.chart.util.curve.Curve

A new :class:Curve with count linear legs zigzagging around base.