Zongzi.Curve.ControlPoint (zongzi v0.3.0)

Copy Markdown

基于刻的控制点。

Summary

Types

控制手柄

t()

Functions

Create a new VO based on the properties.

Modify the property of an existing VO.

Types

handle()

@type handle() :: %{tick: integer(), value: float()} | nil

控制手柄

t()

@type t() :: %Zongzi.Curve.ControlPoint{
  handle_left: handle(),
  handle_right: handle(),
  tick: non_neg_integer(),
  value: float()
}

Functions

new(attrs)

Create a new VO based on the properties.

update(obj, attrs)

Modify the property of an existing VO.