Zongzi. Curve. Adapter. Bezier
(zongzi v0.3.0)
Copy Markdown
Cubic Bezier curve adapter.
Each ControlPoint may carry optional handle_left / handle_right
fields which are relative offsets from the anchor (e.g. %{tick: 50, value: 0.2}).
When nil, the 1/3 rule auto-computes a smooth default.
Rasterization uses recursive bisection (40 iterations) to invert the x(t) cubic, then evaluates y(t).
Summary
Types
@type t() :: %Zongzi.Curve.Adapter.Bezier{points: [Zongzi.Curve.ControlPoint.t()]}