line

fun line(builder: LineClipBuilder.() -> Unit)(source)

Adds a line-shaped clipping mask to the current clip context.

This method configures a linear clipping region with customizable properties defined within the provided builder. The line is determined by its direction and center point.

Parameters

builder

a lambda with receiver scope of LineClipBuilder allowing configuration of the line's attributes such as direction and center position.