Optimized gradient when top color is the same as the bottom one.