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

Functions

Create a new VO based on the properties.

Modify the property of an existing VO.

Types

t()

@type t() :: %Zongzi.Curve.Adapter.Bezier{points: [Zongzi.Curve.ControlPoint.t()]}

Functions

new(attrs)

Create a new VO based on the properties.

update(obj, attrs)

Modify the property of an existing VO.