EasingFunction.Steps



Parameters for a custom step easing function.

A step function is defined by the number of equal-sized steps into which the [0, 1) interval of input-x is split and the behavior at the extremes. When x < 0, the output will always be

  1. When x >= 1, the output will always be 1. The output of the first and last steps is governed by the StepPosition.

The behavior and naming follows the CSS steps() specification at CSS Easing Functions

Summary

Public constructors

Steps(stepCount: Int, stepPosition: EasingFunction.StepPosition)

Creates a new Steps easing function.

Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

Int

The number of steps.

Cmn
EasingFunction.StepPosition

The behavior of the first and last steps.

Cmn

Public constructors

Steps

Steps(stepCount: Int, stepPosition: EasingFunction.StepPosition)

Creates a new Steps easing function.

Parameters
stepCount: Int

The number of steps. Must always be greater than 0, and must be greater than 1 if stepPosition is StepPosition.JUMP_NONE.

stepPosition: EasingFunction.StepPosition

The behavior of the first and last steps.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

stepCount

val stepCountInt

The number of steps. Must always be greater than 0, and must be greater than 1 if stepPosition is StepPosition.JUMP_NONE.

stepPosition

val stepPositionEasingFunction.StepPosition

The behavior of the first and last steps.