BetterGradient generates better looking gradients by converting to the LChuv colorspace. OKLAB support to be added soon.
-
Browse to the test page.
-
Simply choose the colors by clicking on the boxes and these sets of gradients will get generated
- RGB mix
- Linear RGB mix
- LAB mix
- LChuv mix
- Subtle LChuv mix (uses a bunch of Gauss curves)
- RGB LChuv blend mix (blends between RGB and LCH based on hue difference)
-
Hovering anywhere within the gradients will show a comparison between these values.
Currently uses the Chroma.js library for proof of concept. Final versions will be based on different code - hopefully optimized using intrinsics where possible.
BetterGradient is written by Ujwal Kumar.
Released under MIT license.