Skip to main content

new

Function new 

pub fn new(
    path: &Handle<SkPath>,
    advance: f32,
    phase: f32,
    style: SkPath1DPathEffect_Style,
) -> Option<RCHandle<SkPathEffect>>
Expand description

Dash by replicating the specified path.

  • path the path to replicate (dash)
  • advance the space between instances of path
  • phase distance (mod advance) along path for its initial position
  • style how to transform path at each point (based on the current position and tangent)