|
def | __init__ (self) |
|
def | clone (self) |
| Returns a copy of the object. More...
|
|
def | insert_point (self, index, pos, inp=NVector(0, 0), outp=NVector(0, 0)) |
| Inserts a point at the given index. More...
|
|
def | add_point (self, pos, inp=NVector(0, 0), outp=NVector(0, 0)) |
| Appends a point to the curve. More...
|
|
def | add_smooth_point (self, pos, inp) |
| Appends a point with symmetrical tangents. More...
|
|
def | close (self, closed=True) |
| Updates self.closed. More...
|
|
def | point_at (self, t) |
|
def | tangent_angle_at (self, t) |
|
def | split_at (self, t) |
| Get two pieces out of a Bezier curve. More...
|
|
def | segment (self, t1, t2) |
| Splits a Bezier in two points and returns the segment between the. More...
|
|
def | split_self_multi (self, positions) |
| Adds more points to the Bezier. More...
|
|
def | split_each_segment (self) |
| Adds a point in the middle of the segment between every pair of points in the Bezier. More...
|
|
def | split_self_chunks (self, n_chunks) |
| Adds points the Bezier, splitting it into n_chunks additional chunks. More...
|
|
def | reverse (self) |
| Reverses the Bezier curve. More...
|
|
def | rounded (self, round_distance) |
|
def | scale (self, amount) |
|
def | lerp (self, other, t) |
|
def | rough_length (self) |
|
def | to_dict (self) |
| Serializes into a JSON object fit for the Lottie format. More...
|
|
def | load (cls, lottiedict) |
| Loads from a JSON object. More...
|
|
def | find (self, search, propname="name") |
| Recursively searches for child objects with a matching property. More...
|
|
def | find_all (self, type, predicate=None, include_self=True) |
| Find all child objects that match a predicate. More...
|
|
def | clone_into (self, other) |
|
def | __str__ (self) |
|
def | __new__ (cls, name, bases, attr) |
|
Single bezier curve.
- Lottie JSON
Lottie name | Type | Description | Attribute |
c | bool | Closed property of shape. | closed |
i | list of NVector | Cubic bezier handles for the segments before each vertex. | in_tangents |
o | list of NVector | Cubic bezier handles for the segments after each vertex. | out_tangents |
v | list of NVector | Bezier curve vertices. | vertices |
Definition at line 123 of file bezier.py.