Skip to contents

Returns a speed function that slows down in a given interval.

Usage

speed_with_slow_section(slow_start = 0.3, slow_end = 0.7, slow_factor = 0.25)

Arguments

slow_start

Start of slow section (0-1)

slow_end

End of slow section (0-1)

slow_factor

Speed multiplier during slow section (< 1 = slower)

Value

A function(t) -> t' for use with ChangeSpeed