Skip to content

Xankill3r/BetterGradient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BetterGradient

BetterGradient generates better looking gradients by converting to the LChuv colorspace. OKLAB support to be added soon.

Testing

  • 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.

Based on

Currently uses the Chroma.js library for proof of concept. Final versions will be based on different code - hopefully optimized using intrinsics where possible.

Author

BetterGradient is written by Ujwal Kumar.

License

Released under MIT license.