rimHighlight

fun rimHighlight(intensity: Float, width: Dp, sides: Float)

Sets a thin, fixed-intensity light band drawn just inside the shape's edge, above content.

The band is brightest on the top and bottom edges. sides scales the left and right edges relative to the top and bottom: 0f lights only the top and bottom, 1f lights every edge equally. Its distribution is independent of lightPosition and of the specular highlight. The band follows merged container shapes. Limited renderers approximate it.

GlassStyle.regular uses an intensity of 0.7f (0.25f in dark appearance) and GlassStyle.clear 1f, each 1.dp wide with 0f sides; every Style evaluation starts from Regular. An intensity of 0f draws no band.

Parameters

intensity

finite band opacity in the inclusive range 0f..1f.

width

specified, finite, non-negative band width measured inward from the edge.

sides

finite left and right edge strength in the inclusive range 0f..1f.