checkpoints

Creates a SliderValuesDistribution with a distribution strategy based on a list of check points. Each check point is a pair of offset fraction and value that will be associated with with this progress The distribution will interpolate between the check points using linear equations.

Example: For the value range of 0..100 CheckPointsValueDistribution(listOf(0f to 0f, 0.5f to 80f, 1f to 100f)) This will create a distribution that will place value of 80 at 0.5 progress allowing the user to have more precision while selecting values between 80 and 100

Return

a SliderValuesDistribution instance with a check points distribution strategy

Parameters

values

a list of check points, each check point is a pair of offset fraction and value