of

@NotNull
open fun of(value: Float): @NotNull Keyframe

Creates a constant scalar keyframe.


var keyframe = Keyframe.of(2F);

Return

the shared zero or one if the value is approximately zero or one, respectively; otherwise a constant keyframe

Since

3.7.0

Parameters

value

the scalar value