Skip to main content

as_winding

Function as_winding 

pub fn as_winding(path: &Handle<SkPath>) -> Option<Handle<SkPath>>
Expand description

Returns a path with fill type winding to area equivalent to the input. Does not detect if path contains contours which contain self-crossings or cross other contours; in these cases, may return a result even though it does not fill same area as the input.

If it fails to compute a result, returns None.

  • path The path typically with fill type set to even odd.