Skip to content

ColorCorrectLightness

The boolean colorCorrectLightness attribute is forwarded to chroma.js to ensure that the lightness range is distributed evenly across the colors.

Code

html
<dv-scalebar colors="black,red,yellow,white"></dv-scalebar>
<dv-scalebar colors="black,red,yellow,white" colorCorrectLightness></dv-scalebar>

Result