🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

tween

Creates a remote color that interpolates between two RemoteColors based on a tween factor.

tween

Source set: Android
public fun tween(from: RemoteColor, to: RemoteColor, tween: RemoteFloat): RemoteColor

Creates a remote color that interpolates between two RemoteColors based on a tween factor. This allows for dynamic color transitions where both the start/end colors and the interpolation factor can be remote expressions.

Parameters

from The starting RemoteColor.
to The ending RemoteColor.
tween A RemoteFloat representing the interpolation factor in range [0..1].

Return

A new RemoteColor representing the tweened color.

Content updated: