INNER CODE UNIT · Java
additionalDelta
robinhood/ticker · ticker/src/main/java/com/robinhood/ticker/TickerColumn.java:195
final float additionalDelta = previousBottomDelta * (1f - animationProgress);
// Now, using the bottom char's offset percentage and the delta we have from the
// previous animation, we can now compute what's the actual offset of the bottom
// character in the column relative to the baseline.
bottomDelta = bottomCharOffsetPercentage * charHeight * directionAdjustment
+ additionalDelta;
// Figure out what the actual character index is in the characterList, and then
// draw the character with the computed offset.
bottomCharIndex = startIndex + ((int) bottomCharPosition * directionAdjustment);
this.charHeight = charHeight;
this.currentWidth = sourceWidth + (targetWidth - sourceWidth) * animationProgress;
}
/**
* Draw the current state of the column as it's animating from one character in the list