incrementalPadding

fun incrementalPadding(maxIncrements: Int, currentIncrement: Int, maxPadding: Double = 0.85, minPadding: Double = 0.2): Double

Calculates the incremental padding depending on the currentIncrement. It ensures that the value lies in the specified range minPadding..maxPadding.

Parameters

maxIncrements

The maximum number of increments/steps