Skip to main content

op

Function op 

pub fn op(
    one: &Handle<SkPath>,
    two: &Handle<SkPath>,
    op: SkPathOp,
) -> Option<Handle<SkPath>>
Expand description

Set the resulting path to the result of applying the operator to one and two: this = (one op two). The resulting path will be constructed from non-overlapping contours. The curve order is reduced where possible so that cubics may be turned into quadratics, and quadratics maybe turned into lines.

Returns Some if the operation was able to produce a result; otherwise, the result is unmodified.

  • one The first operand (for difference, the minuend)
  • two The second operand (for difference, the subtrahend)
  • op The operator to apply.

Returns Some if the operation succeeded.