Red to blue, left to right
- Direction
- 90
- Start colour
- #ff0000
- End colour
- #0000ff
- Colour stops
- Two colours
Result CSS declaration: background: linear-gradient(90deg, #ff0000 0%, #0000ff 100%);
Colour at 50%: #800080
Keyword equivalent: to right
Colour stops: 2
- Angle 90deg: 0deg points up, 90deg points right, angles turn clockwise.
- Stops: #ff0000 0%, #0000ff 100%.
- Colour at 50% = component-wise sRGB mix of the neighbouring stops = #800080.
At 90deg the gradient runs left to right; the halfway colour is a plain purple, #800080, because each channel is averaged.