diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-03-12 20:58:50 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-03-12 20:58:50 +0400 |
commit | bce924b43c4c5ff46eec7b340b68f37ae8e15215 (patch) | |
tree | af0d8bec8f0c2711fb8a3ebd3e6b82c5220f76ec /source/blender/makesdna | |
parent | 35ed7486c76f11b397d0ff131160f8629af3b49b (diff) |
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
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_userdef_types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index 6faba7ccd2f..b9f1d604007 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -733,10 +733,11 @@ typedef enum eGP_UserdefSettings { /* color picker types */ typedef enum eColorPicker_Types { - USER_CP_CIRCLE = 0, + USER_CP_CIRCLE_HSV = 0, USER_CP_SQUARE_SV = 1, USER_CP_SQUARE_HS = 2, USER_CP_SQUARE_HV = 3, + USER_CP_CIRCLE_HSL = 4, } eColorPicker_Types; /* timecode display styles */ |