HSL color wheel implementation.
authorAntony Riakiotakis <kalast@gmail.com>
Wed, 12 Mar 2014 16:58:50 +0000 (18:58 +0200)
committerAntony Riakiotakis <kalast@gmail.com>
Wed, 12 Mar 2014 16:58:50 +0000 (18:58 +0200)
commitbce924b43c4c5ff46eec7b340b68f37ae8e15215
treeaf0d8bec8f0c2711fb8a3ebd3e6b82c5220f76ec
parent35ed7486c76f11b397d0ff131160f8629af3b49b
HSL color wheel implementation.

This is a standard Hue - Saturation - Lightness model
(see for instance entry on wikipedia here: https://en.wikipedia.org/wiki/HSL_and_HSV)
Note though the difference between HSV and HSL saturation, which are not the same.

The advantage of having this color selection scheme is that artists can select
shades and tints of a color easily by using the lightness slider. Also colors
are arranged on (approximated) perceived lightness on the color wheel.

Beware, Old files opened with this preference saved will crash!

Reviewers: sergey, brecht, campbellbarton

Differential Revision: https://developer.blender.org/D385
source/blender/blenlib/BLI_math_color.h
source/blender/blenlib/intern/math_color.c
source/blender/editors/include/UI_interface.h
source/blender/editors/interface/interface.c
source/blender/editors/interface/interface_handlers.c
source/blender/editors/interface/interface_intern.h
source/blender/editors/interface/interface_regions.c
source/blender/editors/interface/interface_templates.c
source/blender/editors/interface/interface_widgets.c
source/blender/makesdna/DNA_userdef_types.h
source/blender/makesrna/intern/rna_userdef.c