transitionx / in.arunkumarsampath.transitionx.evaluator / ArgbEvaluator

ArgbEvaluator

object ArgbEvaluator : TypeEvaluator<Any>

This evaluator can be used to perform type interpolation between integer values that represent ARGB colors.

Functions

evaluate

fun evaluate(fraction: Float, startValue: Any, endValue: Any): Any

This function returns the calculated in-between value for a color given integers that represent the start and end values in the four bytes of the 32-bit int. Each channel is separately linearly interpolated and the resulting calculated values are recombined into the return value.