addShape

open override fun addShape(shape: Shape, fillRule: FillRule = FillRule.NON_ZERO, quadraticTolerance: Double = 1.0): Int(source)

Adds shape and returns its index. Open contours are closed, like contours of filled shapes in SVG.

Parameters

quadraticTolerance

the tolerance with which cubic segments are approximated with quadratic segments