toBrush

Converts this SVG gradient definition into a Compose Brush gradient.

Return

a Compose gradient brush configured with the resolved gradient properties, colour stops, transformations, and spread method

Parameters

target

the list of path nodes representing the shape to which this gradient will be applied, used for calculating gradient coordinates when gradientUnits is "objectBoundingBox"