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