InterpolatorBuilder

Properties

Link copied to clipboard
abstract var easing: EasingFunction

The EasingFunction to use for all components. Defaults to linear.

Link copied to clipboard

The interpolation method to use. Linear by default.

Link copied to clipboard

If true, multiply each color's components be the color's alpha value before interpolating, and divide the result by its alpha.

Functions

Link copied to clipboard
abstract fun componentAdjustment(component: String, adjustment: ComponentAdjustment)

Add an adjustment to a component with a given name.

Link copied to clipboard
abstract fun componentEasing(component: String, easing: EasingFunction)

Set the easing function for a particular component by name. This overrides the default easing for this component.

Link copied to clipboard
abstract fun stop(color: Color, builder: InterpolatorStopBuilderContext = {})

Add a stop with a default position

open fun stop(color: Color, position: Double, builder: InterpolatorStopBuilderContext = {})
abstract fun stop(color: Color, position: Float, builder: InterpolatorStopBuilderContext = {})

Add a stop with a given position