Returns a number describing the start frame of onion skinning.
number
function getOnionBeginIndex(state) { return Math.max( 0, Math.ceil(state.player.index) - state.renderer.onionSkinFramesBefore ); }