Using the mix
function create a linear gradient that transitions from a given color1
to color2
. Use the x
normalized coordinate of the pixel as the interpolation factor. Apply the step
function so that color transition starts from position 0.25
and ends at 1.0
.