Shimmer
data class Shimmer(highlightColor: Color, val animationSpec: InfiniteRepeatableSpec<Float> = infiniteRepeatable(
animation = tween(durationMillis = 650, easing = LinearEasing),
), intensity: Float = 0.0f, dropOff: Float = 0.5f, tilt: Float = 20.0f) : PlaceholderHighlight
A PlaceholderHighlight that applies a shimmer effect.
This implementation is based on the concepts from the reference shimmer composable, adapting its properties like intensity, dropOff, and tilt for use with a Brush.
Parameters
highlight Color
The color of the shimmer highlight.
animation Spec
The animation spec for the shimmer progress.
intensity
Controls the brightness of the highlight at the center. Values are typically between 0f and 1f.
drop Off
Controls the size of the fading edge of the highlight. Values are typically between 0f and 1f.
tilt
The angle at which the highlight is tilted, in degrees.
duration Millis
The duration of one shimmer animation cycle.