Cover Flow Params
data class CoverFlowParams(val size: Float = 0.5f, val offset: Float = 0.4f, val distanceFactor: DistanceFactor = OffsetLinearDistanceFactor(), val angle: Float = 55.0f, val shift: Float = 0.4f, val zoom: Float = 0.8f, val mirror: Boolean = true) : Parcelable
Params for configuring the coverflow composable.
All relevant values are relativ to the dimensions of the CoverFlow composable to make it responsive. It is based on the shorter of the two sides of the outer component.
Parameters
size
is multiplied with that edge to get the cover size in the middle.
offset
is multiplied with that edge to get the distance between two covers in the list.
distance Factor
calculates how strong the transformations are applied to covers depending on their distance to the center.
angle
is the maximum rotation angle.
shift
is the horizontal shift of the items away from the center. Useful for giving the center element more space.
zoom
makes the side elements smaller.
mirror
acitvates the mirror effect.