star

fun star(builder: StarClipBuilder.() -> Unit)(source)

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

This method configures a clipping region in the shape of a star with customizable properties defined within the provided builder. The star is defined by its radius, center, number of sides, and sharpness.

Parameters

builder

a lambda with receiver scope of StarClipBuilder, allowing configuration of the star's attributes such as radius, center, sides, and sharpness.