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

clamp

Restricts the given value to the range defined by min and max.

clamp

Source set: Android
public fun clamp(value: RemoteFloat, min: RemoteFloat, max: RemoteFloat): RemoteFloat

Restricts the given value to the range defined by min and max.

Parameters

min The lower bound of the range
max The upper bound of the range
value The RemoteFloat value to be clamped

Content updated: