Color interpolations and more
mixColor()
Identical to interpolateColor() but with an animation value that goes from 0 to 1.
interpolateColor()
const backgroundColor = useDerivedValue(() => mixColor(progress.value, "#ff3884", "#38ffb3") );
colorForBackground()
Returns black or white depending on the value of the background color.
Last updated 5 years ago