TrimPathEffect
- class TrimPathEffect
Classes
Members:
Methods
Take start and stop "t" values (values between 0...1), and return a path that is that subset of the original path.
Attributes
Methods
- static TrimPathEffect.Make(startT: float, stopT: float, mode: skia.TrimPathEffect.Mode = skia.TrimPathEffect.Mode.kNormal) skia.PathEffect
Take start and stop “t” values (values between 0…1), and return a path that is that subset of the original path.
e.g. Make(0.5, 1.0) –> return the 2nd half of the path Make(0.33333, 0.66667) –> return the middle third of the path
The trim values apply to the entire path, so if it contains several contours, all of them are including in the calculation.
startT and stopT must be 0..1 inclusive. If they are outside of that interval, they will be pinned to the nearest legal value. If either is NaN, null will be returned.
Note: for Mode::kNormal, this will return one (logical) segment (even if it is spread across multiple contours). For Mode::kInverted, this will return 2 logical segments: stopT..1 and 0…startT, in this order.
- TrimPathEffect.__init__(*args, **kwargs)
Attributes
- TrimPathEffect.kInverted = <Mode.kInverted: 1>
- TrimPathEffect.kNormal = <Mode.kNormal: 0>