animator.skia.PathMeasure

class animator.skia.PathMeasure

Bases: pybind11_builtins.pybind11_object

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: animator.skia.PathMeasure) -> None

  2. __init__(self: animator.skia.PathMeasure, path: animator.skia.Path, forceClosed: bool = False, resScale: float = 1) -> None

Methods

__init__(*args, **kwargs)

Overloaded function.

getLength(self)

getMatrix(self, distance, flags)

Pins distance to 0 <= distance <= getLength(), and returns the corresponding matrix (by calling getPosTan).

getPosTan(self, distance)

Pins distance to 0 <= distance <= getLength(), and returns the corresponding position and tangent.

getSegment(self, startD, stopD[, ...])

Given a start and stop distance, return the intervening segment(s).

isClosed(self)

nextContour(self)

setPath(self, path[, forceClosed])

class MatrixFlags

Bases: pybind11_builtins.pybind11_object

Members:

kGetPosition_MatrixFlag

kGetTangent_MatrixFlag

kGetPosAndTan_MatrixFlag

property name
getLength(self: animator.skia.PathMeasure) float
getMatrix(self: animator.skia.PathMeasure, distance: float, flags: animator.skia.PathMeasure.MatrixFlags = <MatrixFlags.kGetPosAndTan_MatrixFlag: 3>) animator.skia.Matrix

Pins distance to 0 <= distance <= getLength(), and returns the corresponding matrix (by calling getPosTan).

getPosTan(self: animator.skia.PathMeasure, distance: float) tuple

Pins distance to 0 <= distance <= getLength(), and returns the corresponding position and tangent.

getSegment(self: animator.skia.PathMeasure, startD: float, stopD: float, startWithMoveTo: bool = True) animator.skia.Path

Given a start and stop distance, return the intervening segment(s).

isClosed(self: animator.skia.PathMeasure) bool
nextContour(self: animator.skia.PathMeasure) bool
setPath(self: animator.skia.PathMeasure, path: animator.skia.Path, forceClosed: bool = False) None