createModel

inline fun createModel(fillRule: FillRule, block: PathScope.() -> Unit): CanvasPathModel

Creates the PathModel described by the operations invoked in PathScope.

Return

The PathModel object created from the operations invoked in this scope.

Parameters

fillRule

The path's fill type. Defines how "inside" is computed

block

The lambda callback to issue path commands