Skip to main content

new

Function new 

pub fn new(
    start_t: f32,
    stop_t: f32,
    mode: impl Into<Option<SkTrimPathEffect_Mode>>,
) -> Option<RCHandle<SkPathEffect>>
Expand description

Takes start and stop “t” values (values between 0…1), and returns a path that is that subset of the original path. See PathEffect::trim() for details.