map
Transforms the scalar result. Mapping a Constant applies the function immediately.
var doubled = Keyframe.of(2F).map(value -> value * 2F);
Content copied to clipboard
Return
the mapped keyframe, or this keyframe for the identity sentinel
Since
3.7.0
Parameters
function
the transformation to apply
Throws
if mapping a constant and the transformation throws