Skip to content

Instantly share code, notes, and snippets.

@heatcreep
heatcreep / TaperedLine.kt
Created August 11, 2023 22:49
Tapered Line Composable using Canvas
/**
* A divider that tapers from minThickness to maxThickness.
*
* @param modifier The modifier to be applied to the divider.
* @param mirrored Whether the divider should be mirrored.
* @param color The color of the divider.
* @param strokeCap [StrokeCap] The stroke cap of the divider.
* @param maxThickness The maximum thickness of the divider.
* @param minThickness The minimum thickness of the divider.
*/