limit

fun limit(wanted: Float, redShare: Float, deltaSeconds: Float): Float

The light this frame may show, given wanted, the light it is about to show.

redShare is how much of the picture is a saturated red, 0 to 1, which may not flash at all. deltaSeconds is the time since the last frame.