Skip to main content

new

Function new 

pub fn new(intervals: &[f32], phase: f32) -> Option<RCHandle<SkPathEffect>>
Expand description

Dashes the path by copying it with the specified intervals.

  • intervals array containing an even number of entries (>=2), with the even indices specifying the length of “on” intervals, and the odd indices specifying the length of “off” intervals
  • phase offset into the intervals array (mod the sum of all of the intervals)

Note: only affects stroked paths.